Photon Server API
Public Member Functions | Public Attributes | Properties | List of all members
ExitGames.Net.Sockets.Pgm.PgmSocketSender Class Reference

This ISocketSender wraps a Sockets.PooledSender and uses a Pgm.PgmSender. More...

Inheritance diagram for ExitGames.Net.Sockets.Pgm.PgmSocketSender:
ExitGames.Net.Sockets.ISocketSender

Public Member Functions

 PgmSocketSender (string ip, int port)
 Initializes a new instance of the PgmSocketSender class. More...
 
 PgmSocketSender (string ip, int port, string bindInterface)
 Initializes a new instance of the PgmSocketSender class. More...
 
 PgmSocketSender (string ip, int port, bool sendBatched, int batchSize, PgmSendWindowSize?sendWindowSize, string bindInterface)
 Initializes a new instance of the PgmSocketSender class. More...
 
void Dispose ()
 Disposes this instance. More...
 
void Send (IList< ArraySegment< byte >> data)
 Sends some data. More...
 
void Send (byte[] data, int offset, int length)
 Sends some data. More...
 
void Send (byte[] data)
 Sends some data. More...
 

Public Attributes

readonly PooledSender PooledSender
 The used Sockets.PooledSender. More...
 
readonly PgmSender SocketSender
 The used Pgm.PgmSender. 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 multicast end point. More...
 
long TotalBytesSent [get, set]
 Gets or sets the total bytes sent. 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

This ISocketSender wraps a Sockets.PooledSender and uses a Pgm.PgmSender.

Constructor & Destructor Documentation

ExitGames.Net.Sockets.Pgm.PgmSocketSender.PgmSocketSender ( string  ip,
int  port 
)
inline

Initializes a new instance of the PgmSocketSender class.

Parameters
ipThe ip.
portThe port.
ExitGames.Net.Sockets.Pgm.PgmSocketSender.PgmSocketSender ( string  ip,
int  port,
string  bindInterface 
)
inline

Initializes a new instance of the PgmSocketSender class.

Parameters
ipThe ip.
portThe port.
bindInterfaceThe bind interface.
ExitGames.Net.Sockets.Pgm.PgmSocketSender.PgmSocketSender ( string  ip,
int  port,
bool  sendBatched,
int  batchSize,
PgmSendWindowSize sendWindowSize,
string  bindInterface 
)
inline

Initializes a new instance of the PgmSocketSender class.

Parameters
ipThe ip.
portThe port.
sendBatchedThe send batched.
batchSizeThe batch size.
sendWindowSizeThe send window size.
bindInterfaceThe bind interface.

Member Function Documentation

void ExitGames.Net.Sockets.Pgm.PgmSocketSender.Dispose ( )
inline

Disposes this instance.

void ExitGames.Net.Sockets.Pgm.PgmSocketSender.Send ( IList< ArraySegment< byte >>  data)
inline

Sends some data.

Parameters
dataThe data.

Implements ExitGames.Net.Sockets.ISocketSender.

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

Sends some data.

Parameters
dataThe data.
offsetThe offset.
lengthThe length.

Implements ExitGames.Net.Sockets.ISocketSender.

void ExitGames.Net.Sockets.Pgm.PgmSocketSender.Send ( byte[]  data)
inline

Sends some data.

Parameters
dataThe data.

Implements ExitGames.Net.Sockets.ISocketSender.

Member Data Documentation

readonly PooledSender ExitGames.Net.Sockets.Pgm.PgmSocketSender.PooledSender
readonly PgmSender ExitGames.Net.Sockets.Pgm.PgmSocketSender.SocketSender

The used Pgm.PgmSender.

Property Documentation

bool ExitGames.Net.Sockets.Pgm.PgmSocketSender.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.Pgm.PgmSocketSender.EndPoint
get

Gets the multicast end point.

The multicast end point.

long ExitGames.Net.Sockets.Pgm.PgmSocketSender.TotalBytesSent
getset

Gets or sets the total bytes sent.

The total bytes sent.