C# 클래스 PiE.Net.UDPSocket

UDP socket abstraction.
파일 보기 프로젝트 열기: pioneers/forseti 1 사용 예제들

공개 메소드들

메소드 설명
AddDataReceiver ( UDPSocketDataCallback cb ) : void

Adds the data receiver, to be notified on data receive. Notified at this.notifyReceive().

Poll ( ) : void
RemoveDataReceiver ( UDPSocketDataCallback cb ) : void

Removes the data receiver, to from being notified on data receive.

Run ( ) : void

Run this instance.

Send ( byte byteData, string address ) : void
Start ( ) : void

Start this instance.

UDPSocket ( int listenPort, int sendPort ) : System

Initializes a new instance of the PiE.Net.UDPSocket class.

비공개 메소드들

메소드 설명
NotifyReceive ( byte received, string senderAddress ) : void

Notifies listeners that a SocketServerConnection has received data. Called by ServerSocketConnections which are children of this SocketServer.

ReadCallback ( IAsyncResult ar ) : void

Reads the callback.

ReadCallbackBlocking ( byte received, IPAddress address ) : void

메소드 상세

AddDataReceiver() 공개 메소드

Adds the data receiver, to be notified on data receive. Notified at this.notifyReceive().
public AddDataReceiver ( UDPSocketDataCallback cb ) : void
cb UDPSocketDataCallback /// The callback to call on data receive. ///
리턴 void

Poll() 공개 메소드

public Poll ( ) : void
리턴 void

RemoveDataReceiver() 공개 메소드

Removes the data receiver, to from being notified on data receive.
public RemoveDataReceiver ( UDPSocketDataCallback cb ) : void
cb UDPSocketDataCallback /// The callback to call on data receive, that was registered with this.AddDataReciever(). ///
리턴 void

Run() 공개 메소드

Run this instance.
public Run ( ) : void
리턴 void

Send() 공개 메소드

public Send ( byte byteData, string address ) : void
byteData byte
address string
리턴 void

Start() 공개 메소드

Start this instance.
public Start ( ) : void
리턴 void

UDPSocket() 공개 메소드

Initializes a new instance of the PiE.Net.UDPSocket class.
public UDPSocket ( int listenPort, int sendPort ) : System
listenPort int
sendPort int
리턴 System