C# Class NetworkCommsDotNet.Connections.UDP.UdpClientWrapper

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

Public Methods

Method 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 method

public BeginReceive ( AsyncCallback requestCallback, object state ) : IAsyncResult
requestCallback AsyncCallback
state object
return IAsyncResult

CloseClient() public method

public CloseClient ( ) : void
return void

Connect() public method

public Connect ( IPEndPoint endPoint ) : void
endPoint IPEndPoint
return void

EndReceive() public method

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

Receive() public method

public Receive ( IPEndPoint &remoteEP ) : byte[]
remoteEP IPEndPoint
return byte[]

Send() public method

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

UdpClientWrapper() public method

public UdpClientWrapper ( UdpClient udpClient ) : System
udpClient System.Net.Sockets.UdpClient
return System