C# Class CoAP.Channel.UDPChannel

Afficher le fichier Open project: smeshlink/CoAP.NET Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Dispose ( ) : void
Résultat void

Send() public méthode

public Send ( Byte data, System ep ) : void
data Byte
ep System
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

UDPChannel() public méthode

Initializes a UDP channel with a random port.
public UDPChannel ( ) : System
Résultat System

UDPChannel() public méthode

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

UDPChannel() public méthode

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