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
Afficher le fichier Open project: twingly/GearmanSharp

Méthodes publiques

Méthode 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 méthode

public Close ( ) : void
Résultat void

Connect() public méthode

public Connect ( string host, int port ) : void
host string
port int
Résultat void

Receive() public méthode

public Receive ( byte buffer, int size, SocketFlags socketFlags ) : int
buffer byte
size int
socketFlags SocketFlags
Résultat int

Receive() public méthode

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

Send() public méthode

public Send ( byte buffer ) : int
buffer byte
Résultat int

Shutdown() public méthode

public Shutdown ( ) : void
Résultat void

SocketAdapter() public méthode

public SocketAdapter ( Socket socket ) : System.Net.Sockets
socket System.Net.Sockets.Socket
Résultat System.Net.Sockets