Photon Server API
Classes | Public Member Functions | Public Attributes | Properties | Events | List of all members
ExitGames.Net.Sockets.PooledReceiver Class Reference

This ISocketReceiver wrapper dispatches received data async with the .NET thread pool. More...

Inheritance diagram for ExitGames.Net.Sockets.PooledReceiver:
ExitGames.Net.Sockets.ISocketReceiver

Public Member Functions

 PooledReceiver (ISocketReceiver receiver, bool batchedSender)
 Initializes a new instance of the PooledReceiver class. More...
 
void ResetStatistics ()
 Resets message and package count statistics. More...
 
void Dispose ()
 Disposes the instance. More...
 

Public Attributes

readonly PoolFiber Fiber
 The used fiber. More...
 

Properties

IPEndPoint EndPoint [get]
 Gets the remote end point. More...
 
int ReceivedMessages [get]
 Gets the number of messages received. More...
 
int ReceivedPackages [get]
 Gets the number of packages received. More...
 
long TotalBytesReceived [get]
 Gets the total number of bytes received. More...
 
ICounter CounterReadBatchMsgMs [get, set]
 
- 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

EventHandler< SocketReceiveEventArgsReceive
 This event is invoked when new data is received. More...
 
- Events inherited from ExitGames.Net.Sockets.ISocketReceiver
EventHandler< SocketReceiveEventArgsReceive
 Event that is invoked when new data is received. More...
 

Detailed Description

This ISocketReceiver wrapper dispatches received data async with the .NET thread pool.

Constructor & Destructor Documentation

ExitGames.Net.Sockets.PooledReceiver.PooledReceiver ( ISocketReceiver  receiver,
bool  batchedSender 
)
inline

Initializes a new instance of the PooledReceiver class.

Parameters
receiverThe underlying receiver.
batchedSenderIndicates whether to expected message batches from the PooledSender.

Member Function Documentation

void ExitGames.Net.Sockets.PooledReceiver.Dispose ( )
inline

Disposes the instance.

void ExitGames.Net.Sockets.PooledReceiver.ResetStatistics ( )
inline

Resets message and package count statistics.

Member Data Documentation

readonly PoolFiber ExitGames.Net.Sockets.PooledReceiver.Fiber

The used fiber.

Property Documentation

ICounter ExitGames.Net.Sockets.PooledReceiver.CounterReadBatchMsgMs
getset
IPEndPoint ExitGames.Net.Sockets.PooledReceiver.EndPoint
get

Gets the remote end point.

Returns the underlying ISocketReceiver.EndPoint.

int ExitGames.Net.Sockets.PooledReceiver.ReceivedMessages
get

Gets the number of messages received.

The number of messages received.

int ExitGames.Net.Sockets.PooledReceiver.ReceivedPackages
get

Gets the number of packages received.

The number of packages received.

long ExitGames.Net.Sockets.PooledReceiver.TotalBytesReceived
get

Gets the total number of bytes received.

Returns the underlying ISocketReceiver.TotalBytesReceived.

Event Documentation

EventHandler<SocketReceiveEventArgs> ExitGames.Net.Sockets.PooledReceiver.Receive

This event is invoked when new data is received.