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

The socket receive event args. More...

Inheritance diagram for ExitGames.Net.Sockets.SocketReceiveEventArgs:

Public Member Functions

 SocketReceiveEventArgs (EndPoint remoteEndPoint, byte[] buffer, int offset, int length)
 Initializes a new instance of the SocketReceiveEventArgs class. More...
 

Properties

byte[] Buffer [get]
 Gets the data buffer containing the received data. More...
 
int BytesReceived [get]
 Gets the number of bytes received in the socket operation. More...
 
int Offset [get]
 Gets the offset, in bytes, of data in the Buffer property. More...
 
EndPoint RemoteEndPoint [get]
 Gets the remote endpoint from which data was received. More...
 

Detailed Description

The socket receive event args.

Constructor & Destructor Documentation

ExitGames.Net.Sockets.SocketReceiveEventArgs.SocketReceiveEventArgs ( EndPoint  remoteEndPoint,
byte[]  buffer,
int  offset,
int  length 
)
inline

Initializes a new instance of the SocketReceiveEventArgs class.

Parameters
remoteEndPointThe remote end point.
bufferThe buffer.
offsetThe offset.
lengthThe length.

Property Documentation

byte [] ExitGames.Net.Sockets.SocketReceiveEventArgs.Buffer
get

Gets the data buffer containing the received data.

Buffer with the receuved data.

int ExitGames.Net.Sockets.SocketReceiveEventArgs.BytesReceived
get

Gets the number of bytes received in the socket operation.

The number of bytes received in the socket operation.

int ExitGames.Net.Sockets.SocketReceiveEventArgs.Offset
get

Gets the offset, in bytes, of data in the Buffer property.

The offset in Buffer where the received data begins.

EndPoint ExitGames.Net.Sockets.SocketReceiveEventArgs.RemoteEndPoint
get

Gets the remote endpoint from which data was received.

The remote endpoint from which data was received.