C# Class Firefly.Utils.SocketWrapper

Inheritance: ISocket
Afficher le fichier Open project: FireflyServer/firefly

Méthodes publiques

Méthode Description
Close ( ) : void
DisconnectAsync ( SocketAsyncEventArgs e ) : bool
Receive ( byte buffer, int offset, int size, SocketFlags socketFlags, SocketError &errorCode ) : int
ReceiveAsync ( ISocketEvent socketEvent ) : bool
Send ( IList buffers, SocketFlags socketFlags, SocketError &errorCode ) : int
SendAsync ( ISocketEvent socketEvent ) : bool
Shutdown ( SocketShutdown how ) : void
SocketWrapper ( Socket socket ) : System

Method Details

Close() public méthode

public Close ( ) : void
Résultat void

DisconnectAsync() public méthode

public DisconnectAsync ( SocketAsyncEventArgs e ) : bool
e System.Net.Sockets.SocketAsyncEventArgs
Résultat bool

Receive() public méthode

public Receive ( byte buffer, int offset, int size, SocketFlags socketFlags, SocketError &errorCode ) : int
buffer byte
offset int
size int
socketFlags SocketFlags
errorCode SocketError
Résultat int

ReceiveAsync() public méthode

public ReceiveAsync ( ISocketEvent socketEvent ) : bool
socketEvent ISocketEvent
Résultat bool

Send() public méthode

public Send ( IList buffers, SocketFlags socketFlags, SocketError &errorCode ) : int
buffers IList
socketFlags SocketFlags
errorCode SocketError
Résultat int

SendAsync() public méthode

public SendAsync ( ISocketEvent socketEvent ) : bool
socketEvent ISocketEvent
Résultat bool

Shutdown() public méthode

public Shutdown ( SocketShutdown how ) : void
how SocketShutdown
Résultat void

SocketWrapper() public méthode

public SocketWrapper ( Socket socket ) : System
socket Socket
Résultat System