C# Class BF2Statistics.Gamespy.Net.GamespyUdpPacket

This class represents a packet recieved from and/or to be sent to a remote UDP connection. This class is essentially a wrapper for SocketAsyncEventArgs and Asynchronous reading and writing
Show file Open project: BF2Statistics/ControlCenter Class Usage Examples

Public Properties

Property Type Description
BytesRecieved byte[]

Public Methods

Method Description
GamespyUdpPacket ( SocketAsyncEventArgs e ) : System
SetBufferContents ( byte contents ) : int

Sets the contents of the SocketAsyncEventArgs buffer, so a reply can be sent to the remote host connection

Method Details

GamespyUdpPacket() public method

public GamespyUdpPacket ( SocketAsyncEventArgs e ) : System
e System.Net.Sockets.SocketAsyncEventArgs
return System

SetBufferContents() public method

Sets the contents of the SocketAsyncEventArgs buffer, so a reply can be sent to the remote host connection
public SetBufferContents ( byte contents ) : int
contents byte The new contents to set the buffer to
return int

Property Details

BytesRecieved public property

An array of the bytes received in this packet
public byte[] BytesRecieved
return byte[]