C# Class NetworkCommsDotNet.Connections.UDP.UdpClientWrapper

Internal wrapper around a udpClient object so that we can easily manage usage.
Afficher le fichier Open project: MarcFletcher/NetworkComms.Net Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

BeginReceive() public méthode

public BeginReceive ( AsyncCallback requestCallback, object state ) : IAsyncResult
requestCallback AsyncCallback
state object
Résultat IAsyncResult

CloseClient() public méthode

public CloseClient ( ) : void
Résultat void

Connect() public méthode

public Connect ( IPEndPoint endPoint ) : void
endPoint IPEndPoint
Résultat void

EndReceive() public méthode

public EndReceive ( IAsyncResult asyncResult, IPEndPoint &remoteEP ) : byte[]
asyncResult IAsyncResult
remoteEP IPEndPoint
Résultat byte[]

Receive() public méthode

public Receive ( IPEndPoint &remoteEP ) : byte[]
remoteEP IPEndPoint
Résultat byte[]

Send() public méthode

public Send ( byte dgram, int bytes, IPEndPoint endPoint ) : void
dgram byte
bytes int
endPoint IPEndPoint
Résultat void

UdpClientWrapper() public méthode

public UdpClientWrapper ( UdpClient udpClient ) : System
udpClient System.Net.Sockets.UdpClient
Résultat System