C# Class SteamKit2.TcpPacket

Represents a data packet sent over tcp. Contains a length and payload.
Inheritance: BinaryWriterEx
ファイルを表示 Open project: Top-Cat/SteamBot Class Usage Examples

Public Methods

Method 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 method

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

GetPayload() public method

Gets the payload of this packet.
public GetPayload ( ) : byte[]
return byte[]

SetPayload() public method

Sets the payload of this packet.
public SetPayload ( byte payload ) : void
payload byte The payload.
return void

TcpPacket() public method

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