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

An ISocketSender implementation for UDP. More...

Inheritance diagram for ExitGames.Net.Sockets.Udp.UdpSender:
ExitGames.Net.Sockets.ISocketSender

Public Member Functions

 UdpSender (IPEndPoint endPoint)
 Initializes a new instance of the UdpSender class. More...
 
 UdpSender (IPAddress address, int port)
 Initializes a new instance of the UdpSender class. More...
 
void Start ()
 Connects to the EndPoint. More...
 
void Dispose ()
 Disposes all managed and unmanaged resources. More...
 
void Send (byte[] data)
 Sends a byte array. More...
 
void Send (byte[] data, int offset, int length)
 Sends a byte array. More...
 
void Send (IList< ArraySegment< byte >> data)
 Sends a list of ArraySegment<T> of byte. More...
 

Properties

bool Connected [get]
 Gets a value indicating whether the ISocketSender is connected to a remote host as of the last Send operation. More...
 
IPEndPoint EndPoint [get]
 Gets the endpoint address to which the underling socket is associated. More...
 
long TotalBytesSent [get]
 Gets the number of bytes sent by this instance. More...
 
- Properties inherited from ExitGames.Net.Sockets.ISocketSender
bool Connected [get]
 Gets a value indicating whether the ISocketSender is connected to a remote host as of the last Send operation. More...
 
IPEndPoint EndPoint [get]
 Gets the remote end point. More...
 
long TotalBytesSent [get]
 Gets the total number of sent bytes. More...
 

Detailed Description

An ISocketSender implementation for UDP.

Constructor & Destructor Documentation

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

Initializes a new instance of the UdpSender class.

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

Initializes a new instance of the UdpSender class.

Parameters
addressThe IP address.
portThe port.

Member Function Documentation

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

Disposes all managed and unmanaged resources.

void ExitGames.Net.Sockets.Udp.UdpSender.Send ( byte[]  data)
inline

Sends a byte array.

Parameters
dataThe data.

Implements ExitGames.Net.Sockets.ISocketSender.

void ExitGames.Net.Sockets.Udp.UdpSender.Send ( byte[]  data,
int  offset,
int  length 
)
inline

Sends a byte array.

Parameters
dataThe data.
offsetThe offset.
lengthThe length.

Implements ExitGames.Net.Sockets.ISocketSender.

void ExitGames.Net.Sockets.Udp.UdpSender.Send ( IList< ArraySegment< byte >>  data)
inline

Sends a list of ArraySegment<T> of byte.

Parameters
dataThe data.

Implements ExitGames.Net.Sockets.ISocketSender.

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

Connects to the EndPoint.

Property Documentation

bool ExitGames.Net.Sockets.Udp.UdpSender.Connected
get

Gets a value indicating whether the ISocketSender is connected to a remote host as of the last Send operation.

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

Gets the endpoint address to which the underling socket is associated.

long ExitGames.Net.Sockets.Udp.UdpSender.TotalBytesSent
get

Gets the number of bytes sent by this instance.