C# Class FileFind.Meshwork.Transport.TcpTransport

Inheritance: TransportBase
Mostra file Open project: codebutler/meshwork Class Usage Examples

Public Properties

Property Type Description
DefaultPort int

Public Methods

Method Description
Connect ( TransportCallback callback ) : void
Disconnect ( ) : void
Disconnect ( Exception ex ) : void
Receive ( byte buffer, int offset, int size ) : int
Send ( byte buffer, int offset, int size ) : int
TcpTransport ( IPAddress address, int port, ulong connectionType ) : System
ToString ( ) : string

Private Methods

Method Description
OnConnected ( IAsyncResult result ) : void
TcpTransport ( Socket socket ) : System

Method Details

Connect() public method

public Connect ( TransportCallback callback ) : void
callback TransportCallback
return void

Disconnect() public method

public Disconnect ( ) : void
return void

Disconnect() public method

public Disconnect ( Exception ex ) : void
ex System.Exception
return void

Receive() public method

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

Send() public method

public Send ( byte buffer, int offset, int size ) : int
buffer byte
offset int
size int
return int

TcpTransport() public method

public TcpTransport ( IPAddress address, int port, ulong connectionType ) : System
address System.Net.IPAddress
port int
connectionType ulong
return System

ToString() public method

public ToString ( ) : string
return string

Property Details

DefaultPort public_oe static_oe property

public static int DefaultPort
return int