Photon Server API
Public Member Functions | Protected Member Functions | Properties | List of all members
ExitGames.Net.Sockets.AsyncSocketReceiver Class Referenceabstract

The AsyncSocketReceiver receives data from a socket using the asynchronous programming model including IO completion ports. More...

Inheritance diagram for ExitGames.Net.Sockets.AsyncSocketReceiver:

Public Member Functions

void BeginReceive ()
 Begins an asynchronous request to receive data from the underlying socket. More...
 
void Dispose ()
 Disposes the receiver. More...
 

Protected Member Functions

 AsyncSocketReceiver (Socket socket, int bufferSize)
 Initializes a new instance of the AsyncSocketReceiver class. More...
 
virtual void Dispose (bool disposing)
 Disposes the receiver instance. More...
 
abstract void OnReceiveCompleted (object sender, SocketAsyncEventArgs e)
 Abstract method that is called when the socket has received new data. More...
 

Properties

int BufferSize [get]
 Gets the size, in bytes, of the buffer for incoming data. More...
 
EndPoint RemoteEndpoint [get]
 Gets the remote endpoint of the underlying socket. More...
 

Detailed Description

The AsyncSocketReceiver receives data from a socket using the asynchronous programming model including IO completion ports.

Constructor & Destructor Documentation

ExitGames.Net.Sockets.AsyncSocketReceiver.AsyncSocketReceiver ( Socket  socket,
int  bufferSize 
)
inlineprotected

Initializes a new instance of the AsyncSocketReceiver class.

Parameters
socketThe socket.
bufferSizeThe buffer size.

Member Function Documentation

void ExitGames.Net.Sockets.AsyncSocketReceiver.BeginReceive ( )
inline

Begins an asynchronous request to receive data from the underlying socket.

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

Disposes the receiver.

virtual void ExitGames.Net.Sockets.AsyncSocketReceiver.Dispose ( bool  disposing)
inlineprotectedvirtual

Disposes the receiver instance.

Parameters
disposingThe disposing.
abstract void ExitGames.Net.Sockets.AsyncSocketReceiver.OnReceiveCompleted ( object  sender,
SocketAsyncEventArgs  e 
)
protectedpure virtual

Abstract method that is called when the socket has received new data.

Parameters
senderThe sender is a Socket instance.
eThe SocketAsyncEventArgs.

Property Documentation

int ExitGames.Net.Sockets.AsyncSocketReceiver.BufferSize
get

Gets the size, in bytes, of the buffer for incoming data.

The size of the buffer.

EndPoint ExitGames.Net.Sockets.AsyncSocketReceiver.RemoteEndpoint
get

Gets the remote endpoint of the underlying socket.

The remote IP and port.