Photon Server API
Public Member Functions | Properties | Events | List of all members
ExitGames.Net.Sockets.Udp.UdpReceiver Class Reference

An ISocketReceiver implementation for UDP. More...

Inheritance diagram for ExitGames.Net.Sockets.Udp.UdpReceiver:
ExitGames.Net.Sockets.ISocketReceiver

Public Member Functions

 UdpReceiver (IPEndPoint endPoint)
 Initializes a new instance of the UdpReceiver class. More...
 
 UdpReceiver (IPAddress address, int port)
 Initializes a new instance of the UdpReceiver class. More...
 
void Start ()
 Starts the UDP receiver. More...
 
void Dispose ()
 Closes the UdpClient. More...
 

Properties

IPEndPoint EndPoint [get]
 Gets the IP end point. More...
 
long TotalBytesReceived [get]
 Gets the total number of bytes received. More...
 
- Properties inherited from ExitGames.Net.Sockets.ISocketReceiver
IPEndPoint EndPoint [get]
 Gets the remote end point. More...
 
long TotalBytesReceived [get]
 Gets the total number of resecived bytes. More...
 

Events

Action< object, Exception > Error
 This event is invoked if an unexpected exception is thrown. More...
 
EventHandler< SocketReceiveEventArgsReceive
 This event is invoked if a package is received. More...
 
- Events inherited from ExitGames.Net.Sockets.ISocketReceiver
EventHandler< SocketReceiveEventArgsReceive
 Event that is invoked when new data is received. More...
 

Detailed Description

An ISocketReceiver implementation for UDP.

Constructor & Destructor Documentation

ExitGames.Net.Sockets.Udp.UdpReceiver.UdpReceiver ( IPEndPoint  endPoint)
inline

Initializes a new instance of the UdpReceiver class.

Parameters
endPointThe IP end point.
ExitGames.Net.Sockets.Udp.UdpReceiver.UdpReceiver ( IPAddress  address,
int  port 
)
inline

Initializes a new instance of the UdpReceiver class.

Parameters
addressThe IP address.
portThe port.

Member Function Documentation

void ExitGames.Net.Sockets.Udp.UdpReceiver.Dispose ( )
inline

Closes the UdpClient.

void ExitGames.Net.Sockets.Udp.UdpReceiver.Start ( )
inline

Starts the UDP receiver.

Property Documentation

IPEndPoint ExitGames.Net.Sockets.Udp.UdpReceiver.EndPoint
get

Gets the IP end point.

long ExitGames.Net.Sockets.Udp.UdpReceiver.TotalBytesReceived
get

Gets the total number of bytes received.

Event Documentation

Action<object, Exception> ExitGames.Net.Sockets.Udp.UdpReceiver.Error

This event is invoked if an unexpected exception is thrown.

EventHandler<SocketReceiveEventArgs> ExitGames.Net.Sockets.Udp.UdpReceiver.Receive

This event is invoked if a package is received.