Struct PacketHeader
Struct PacketHeader
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: TM
Assembly: TM.dll
Syntax
public struct PacketHeader
Constructors
| Improve this Doc View SourcePacketHeader(EServerType)
Initializes a new instance of the PacketHeader struct.
Declaration
public PacketHeader(EServerType server_type = EServerType.MCS)
Parameters
Type | Name | Description |
---|---|---|
EServerType | server_type |
Fields
| Improve this Doc View Sourcedatalength
length of data after this header (bytes)
Declaration
public uint datalength
Field Value
Type | Description |
---|---|
System.UInt32 |
Length
The length
Declaration
public static uint Length
Field Value
Type | Description |
---|---|
System.UInt32 |
packet_number
The packet number
Declaration
public int packet_number
Field Value
Type | Description |
---|---|
System.Int32 |
reserved
The reserved
Declaration
public byte[] reserved
Field Value
Type | Description |
---|---|
System.Byte[] |
sign
signature: "XRay" | "Ther" | .
Declaration
public byte[] sign
Field Value
Type | Description |
---|---|
System.Byte[] |
type
type: command, data, info
Declaration
public byte type
Field Value
Type | Description |
---|---|
System.Byte |
value
command number
Declaration
public byte value
Field Value
Type | Description |
---|---|
System.Byte |
Methods
| Improve this Doc View SourceToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.ValueType.ToString()