C# Class Twingly.Gearman.SocketAdapter

Adapter for System.Net.Sockets.Socket that implements ISocket. Passes all calls to the underlying Socket. AddressFamily.InterNetwork. SocketType.Stream. ProtocolType.Tcp.
Inheritance: ISocket
Mostrar archivo Open project: twingly/GearmanSharp

Public Methods

Method Description
Close ( ) : void
Connect ( string host, int port ) : void
Receive ( byte buffer, int size, SocketFlags socketFlags ) : int
Receive ( byte buffer, int offset, int size, SocketFlags socketFlags ) : int
Send ( byte buffer ) : int
Shutdown ( ) : void
SocketAdapter ( Socket socket ) : System.Net.Sockets

Method Details

Close() public method

public Close ( ) : void
return void

Connect() public method

public Connect ( string host, int port ) : void
host string
port int
return void

Receive() public method

public Receive ( byte buffer, int size, SocketFlags socketFlags ) : int
buffer byte
size int
socketFlags SocketFlags
return int

Receive() public method

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

Send() public method

public Send ( byte buffer ) : int
buffer byte
return int

Shutdown() public method

public Shutdown ( ) : void
return void

SocketAdapter() public method

public SocketAdapter ( Socket socket ) : System.Net.Sockets
socket System.Net.Sockets.Socket
return System.Net.Sockets