C# Class BACnet.IP.UDPAsyncServer

Inheritance: IDisposable
Afficher le fichier Open project: LorenVS/bacstack Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Disposes the UDPAsyncServer instance

Send ( IPEndPoint ep, byte buffer, int length ) : void

Sends a datagram

UDPAsyncServer ( IPEndPoint ep, DatagramReceivedDelegate receiveDelegate ) : System

Constructs a new UDPAsyncServer instance

Private Methods

Méthode Description
_disposeAll ( ) : void

Disposes of all resources held by the UDPAsyncServer instance

_receiveComplete ( IAsyncResult result ) : void

Called when an asynchronous receive operation completes

_receiveNext ( ) : IAsyncResult

Begins receiving the next UDP datagram

_sendComplete ( IAsyncResult result ) : void

Called when an asynchronous send operation completes

Method Details

Dispose() public méthode

Disposes the UDPAsyncServer instance
public Dispose ( ) : void
Résultat void

Send() public méthode

Sends a datagram
public Send ( IPEndPoint ep, byte buffer, int length ) : void
ep System.Net.IPEndPoint The IPEndPoint of the destination device
buffer byte The buffer containing the datagram to send
length int The length of the datagram to send
Résultat void

UDPAsyncServer() public méthode

Constructs a new UDPAsyncServer instance
public UDPAsyncServer ( IPEndPoint ep, DatagramReceivedDelegate receiveDelegate ) : System
ep System.Net.IPEndPoint The IP endpoint to bind to
receiveDelegate DatagramReceivedDelegate Callback to user code whenever a datagram is received
Résultat System