C# Class CoAP.Channel.UDPChannel

Show file Open project: smeshlink/CoAP.NET Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
Send ( Byte data, System ep ) : void
Start ( ) : void
Stop ( ) : void
UDPChannel ( ) : System

Initializes a UDP channel with a random port.

UDPChannel ( Int32 port ) : System

Initializes a UDP channel with the given port, both on IPv4 and IPv6.

UDPChannel ( System localEP ) : System

Initializes a UDP channel with the specific endpoint.

Private Methods

Method Description
BeginReceive ( ) : void
BeginSend ( ) : void
EndReceive ( UDPSocket socket, Byte buffer, Int32 offset, Int32 count, System ep ) : void
EndReceive ( UDPSocket socket, Exception ex ) : void
EndSend ( UDPSocket socket, Exception ex ) : void
EndSend ( UDPSocket socket, Int32 bytesTransferred ) : void
FireDataReceived ( Byte data, System ep ) : void
SetupUDPSocket ( AddressFamily addressFamily, Int32 bufferSize ) : UDPSocket

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Send() public method

public Send ( Byte data, System ep ) : void
data Byte
ep System
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

UDPChannel() public method

Initializes a UDP channel with a random port.
public UDPChannel ( ) : System
return System

UDPChannel() public method

Initializes a UDP channel with the given port, both on IPv4 and IPv6.
public UDPChannel ( Int32 port ) : System
port System.Int32
return System

UDPChannel() public method

Initializes a UDP channel with the specific endpoint.
public UDPChannel ( System localEP ) : System
localEP System
return System