C# Class Firefly.Utils.SocketWrapper

Inheritance: ISocket
Show file Open project: FireflyServer/firefly

Public Methods

Method 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 method

public Close ( ) : void
return void

DisconnectAsync() public method

public DisconnectAsync ( SocketAsyncEventArgs e ) : bool
e System.Net.Sockets.SocketAsyncEventArgs
return bool

Receive() public method

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

ReceiveAsync() public method

public ReceiveAsync ( ISocketEvent socketEvent ) : bool
socketEvent ISocketEvent
return bool

Send() public method

public Send ( IList buffers, SocketFlags socketFlags, SocketError &errorCode ) : int
buffers IList
socketFlags SocketFlags
errorCode SocketError
return int

SendAsync() public method

public SendAsync ( ISocketEvent socketEvent ) : bool
socketEvent ISocketEvent
return bool

Shutdown() public method

public Shutdown ( SocketShutdown how ) : void
how SocketShutdown
return void

SocketWrapper() public method

public SocketWrapper ( Socket socket ) : System
socket Socket
return System