C# Class Mono.MicroThreads.MicroSocket

Afficher le fichier Open project: mono/mono-microthreads Class Usage Examples

Méthodes publiques

Méthode Description
Accept ( ) : MicroSocket
Bind ( EndPoint localEP ) : void
Close ( ) : void
Connect ( IPAddress address, int port ) : bool
Listen ( int backlog ) : void
MicroSocket ( ) : System
MicroSocket ( Socket socket ) : System
Receive ( byte buffer ) : int
Receive ( byte buffer, int offset, int size, SocketFlags socketFlags, SocketError &error ) : int
Send ( byte buffer, int len ) : int
Send ( byte buffer, int offset, int size, SocketFlags socketFlags, SocketError &error ) : int
Shutdown ( ) : void

Private Methods

Méthode Description
Print ( string msg ) : void

Method Details

Accept() public méthode

public Accept ( ) : MicroSocket
Résultat MicroSocket

Bind() public méthode

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

Close() public méthode

public Close ( ) : void
Résultat void

Connect() public méthode

public Connect ( IPAddress address, int port ) : bool
address System.Net.IPAddress
port int
Résultat bool

Listen() public méthode

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

MicroSocket() public méthode

public MicroSocket ( ) : System
Résultat System

MicroSocket() public méthode

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

Receive() public méthode

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

Receive() public méthode

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

Send() public méthode

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

Send() public méthode

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

Shutdown() public méthode

public Shutdown ( ) : void
Résultat void