C# Class Mono.MicroThreads.MicroSocket

Mostra file Open project: mono/mono-microthreads Class Usage Examples

Public Methods

Method 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

Method Description
Print ( string msg ) : void

Method Details

Accept() public method

public Accept ( ) : MicroSocket
return MicroSocket

Bind() public method

public Bind ( EndPoint localEP ) : void
localEP System.Net.EndPoint
return void

Close() public method

public Close ( ) : void
return void

Connect() public method

public Connect ( IPAddress address, int port ) : bool
address System.Net.IPAddress
port int
return bool

Listen() public method

public Listen ( int backlog ) : void
backlog int
return void

MicroSocket() public method

public MicroSocket ( ) : System
return System

MicroSocket() public method

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

Receive() public method

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

Receive() public method

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

Send() public method

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

Send() public method

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

Shutdown() public method

public Shutdown ( ) : void
return void