C# 클래스 BACnet.IP.UDPAsyncServer

상속: IDisposable
파일 보기 프로젝트 열기: LorenVS/bacstack 1 사용 예제들

공개 메소드들

메소드 설명
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