C# Class FileFind.Meshwork.Transport.UdpTransport

Inheritance: AbstractTransport, IEncryptedTransport
ファイルを表示 Open project: codebutler/meshwork

Public Methods

Method Description
BeginReceive ( byte buffer, int offset, int size, ReceiveDataCallback callback ) : void
BeginReceiveEncrypted ( byte buffer, int offset, int size, ReceiveDataCallback callback ) : void
BeginSend ( byte buffer, int offset, int size, TransportCallback callback ) : void
BeginSendEncrypted ( byte buffer, int offset, int size, TransportCallback callback ) : void
Connect ( TransportCallback callback ) : void
Disconnect ( ) : void
Disconnect ( Exception ex ) : void
Receive ( byte buffer ) : void
Receive ( byte buffer, int offset, int size ) : void
ReceiveEncrypted ( byte buffer, int offset, int size ) : void
Send ( byte buffer ) : void
Send ( byte buffer, int offset, int size ) : void
SendEncrypted ( byte buffer, int offset, int size ) : void
ToString ( ) : string

Private Methods

Method Description
BeginReceivePrivate ( byte buffer, int offset, int size, ReceiveDataCallback callback, int totalReceived ) : void
OnDataSent ( IAsyncResult result ) : void
OnReceiveEncryptedData ( IAsyncResult result ) : void
OnReceivedData ( IAsyncResult result ) : void
ReceivePrivate ( byte buffer, int offset, int size, int totalReceived ) : void
UdpTransport ( IPAddress address, int port, ulong connectionType ) : System
UdpTransport ( IPEndPoint remoteEndPoint ) : System

Method Details

BeginReceive() public method

public BeginReceive ( byte buffer, int offset, int size, ReceiveDataCallback callback ) : void
buffer byte
offset int
size int
callback ReceiveDataCallback
return void

BeginReceiveEncrypted() public method

public BeginReceiveEncrypted ( byte buffer, int offset, int size, ReceiveDataCallback callback ) : void
buffer byte
offset int
size int
callback ReceiveDataCallback
return void

BeginSend() public method

public BeginSend ( byte buffer, int offset, int size, TransportCallback callback ) : void
buffer byte
offset int
size int
callback TransportCallback
return void

BeginSendEncrypted() public method

public BeginSendEncrypted ( byte buffer, int offset, int size, TransportCallback callback ) : void
buffer byte
offset int
size int
callback TransportCallback
return void

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 ) : void
buffer byte
return void

Receive() public method

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

ReceiveEncrypted() public method

public ReceiveEncrypted ( byte buffer, int offset, int size ) : void
buffer byte
offset int
size int
return void

Send() public method

public Send ( byte buffer ) : void
buffer byte
return void

Send() public method

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

SendEncrypted() public method

public SendEncrypted ( byte buffer, int offset, int size ) : void
buffer byte
offset int
size int
return void

ToString() public method

public ToString ( ) : string
return string