C# Класс BACnet.IP.UDPAsyncServer

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
_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

Описание методов

Dispose() публичный метод

Disposes the UDPAsyncServer instance
public Dispose ( ) : void
Результат void

Send() публичный метод

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
Результат void

UDPAsyncServer() публичный метод

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
Результат System