C# 클래스 SteamKit2.TcpPacket

Represents a data packet sent over tcp. Contains a length and payload.
상속: BinaryWriterEx
파일 보기 프로젝트 열기: Top-Cat/SteamBot 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

GetData() 공개 메소드

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

GetPayload() 공개 메소드

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

SetPayload() 공개 메소드

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

TcpPacket() 공개 메소드

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