C# Class BACnet.IP.UDPAsyncServer

Inheritance: IDisposable
Show file Open project: LorenVS/bacstack Class Usage Examples

Public Methods

Method 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

Method 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 method

Disposes the UDPAsyncServer instance
public Dispose ( ) : void
return void

Send() public method

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
return void

UDPAsyncServer() public method

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
return System