C# Class Fleck.SocketWrapper

Inheritance: ISocket
Afficher le fichier Open project: statianzo/Fleck Class Usage Examples

Méthodes publiques

Méthode Description
Accept ( Action callback, Action error ) : Task
Authenticate ( X509Certificate2 certificate, SslProtocols enabledSslProtocols, System.Action callback, Action error ) : Task
Bind ( EndPoint endPoint ) : void
Close ( ) : void
Dispose ( ) : void
EndSend ( IAsyncResult asyncResult ) : int
Listen ( int backlog ) : void
Receive ( byte buffer, Action callback, Action error, int offset ) : Task
Send ( byte buffer, System.Action callback, Action error ) : Task
SocketWrapper ( Socket socket ) : System

Method Details

Accept() public méthode

public Accept ( Action callback, Action error ) : Task
callback Action
error Action
Résultat Task

Authenticate() public méthode

public Authenticate ( X509Certificate2 certificate, SslProtocols enabledSslProtocols, System.Action callback, Action error ) : Task
certificate X509Certificate2
enabledSslProtocols SslProtocols
callback System.Action
error Action
Résultat Task

Bind() public méthode

public Bind ( EndPoint endPoint ) : void
endPoint System.Net.EndPoint
Résultat void

Close() public méthode

public Close ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

EndSend() public méthode

public EndSend ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
Résultat int

Listen() public méthode

public Listen ( int backlog ) : void
backlog int
Résultat void

Receive() public méthode

public Receive ( byte buffer, Action callback, Action error, int offset ) : Task
buffer byte
callback Action
error Action
offset int
Résultat Task

Send() public méthode

public Send ( byte buffer, System.Action callback, Action error ) : Task
buffer byte
callback System.Action
error Action
Résultat Task

SocketWrapper() public méthode

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