C# Class SteamKit2.TcpPacket

Represents a data packet sent over tcp. Contains a length and payload.
Inheritance: BinaryWriterEx
Afficher le fichier Open project: Top-Cat/SteamBot Class Usage Examples

Méthodes publiques

Méthode Description
GetData ( ) : byte[]

Gets the full packet data with a big-endian length prepended onto the payload.

GetPayload ( ) : byte[]

Gets the payload of this packet.

SetPayload ( byte payload ) : void

Sets the payload of this packet.

TcpPacket ( )

Initializes a new instance of the TcpPacket class.

Method Details

GetData() public méthode

Gets the full packet data with a big-endian length prepended onto the payload.
public GetData ( ) : byte[]
Résultat byte[]

GetPayload() public méthode

Gets the payload of this packet.
public GetPayload ( ) : byte[]
Résultat byte[]

SetPayload() public méthode

Sets the payload of this packet.
public SetPayload ( byte payload ) : void
payload byte The payload.
Résultat void

TcpPacket() public méthode

Initializes a new instance of the TcpPacket class.
public TcpPacket ( )