C# 클래스 NetworkCommsDotNet.Connections.UDP.UdpClientWrapper

Internal wrapper around a udpClient object so that we can easily manage usage.
파일 보기 프로젝트 열기: MarcFletcher/NetworkComms.Net 1 사용 예제들

공개 메소드들

메소드 설명
BeginReceive ( AsyncCallback requestCallback, object state ) : IAsyncResult
CloseClient ( ) : void
Connect ( IPEndPoint endPoint ) : void
EndReceive ( IAsyncResult asyncResult, IPEndPoint &remoteEP ) : byte[]
Receive ( IPEndPoint &remoteEP ) : byte[]
Send ( byte dgram, int bytes, IPEndPoint endPoint ) : void
UdpClientWrapper ( UdpClient udpClient ) : System

메소드 상세

BeginReceive() 공개 메소드

public BeginReceive ( AsyncCallback requestCallback, object state ) : IAsyncResult
requestCallback AsyncCallback
state object
리턴 IAsyncResult

CloseClient() 공개 메소드

public CloseClient ( ) : void
리턴 void

Connect() 공개 메소드

public Connect ( IPEndPoint endPoint ) : void
endPoint IPEndPoint
리턴 void

EndReceive() 공개 메소드

public EndReceive ( IAsyncResult asyncResult, IPEndPoint &remoteEP ) : byte[]
asyncResult IAsyncResult
remoteEP IPEndPoint
리턴 byte[]

Receive() 공개 메소드

public Receive ( IPEndPoint &remoteEP ) : byte[]
remoteEP IPEndPoint
리턴 byte[]

Send() 공개 메소드

public Send ( byte dgram, int bytes, IPEndPoint endPoint ) : void
dgram byte
bytes int
endPoint IPEndPoint
리턴 void

UdpClientWrapper() 공개 메소드

public UdpClientWrapper ( UdpClient udpClient ) : System
udpClient System.Net.Sockets.UdpClient
리턴 System