C# Класс 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
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
BytesRecieved byte[]

Открытые методы

Метод Описание
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

Описание методов

GamespyUdpPacket() публичный Метод

public GamespyUdpPacket ( SocketAsyncEventArgs e ) : System
e System.Net.Sockets.SocketAsyncEventArgs
Результат System

SetBufferContents() публичный Метод

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
Результат int

Описание свойств

BytesRecieved публичное свойство

An array of the bytes received in this packet
public byte[] BytesRecieved
Результат byte[]