The PacketHeader type exposes the following members.
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
PacketHeader |
Creates a new packetHeader
|
Methods
Name | Description | |
---|---|---|
ContainsOption(PacketHeaderLongItems) |
Check if a long option has been set.
| |
ContainsOption(PacketHeaderStringItems) |
Check if a string option has been set.
| |
Deserialize(Stream) |
Deserializes from a Stream to the current IExplicitlySerialize object
| |
Deserialize(Stream, PacketHeader ) |
Deserializes from a memory stream to a PacketHeader object
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetOption(PacketHeaderLongItems) |
Get a long option.
| |
GetOption(PacketHeaderStringItems) |
Get a string option
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Serialize |
Serializes the current IExplicitlySerialize object to the provided Stream | |
SetOption(PacketHeaderLongItems, Int64) |
Set a long option with the provided value.
| |
SetOption(PacketHeaderStringItems, String) |
Set a string option with the provided value.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
CheckSumHash |
A checksum corresponding to the payload data. If no checksum is set returns null.
| |
PacketIdentifier |
Optional packet identifier. If no packet identifier is set returns null.
| |
PacketSequenceNumber |
The sequence number for this packet
| |
PacketType |
The packet type.
| |
RequestedReturnPacketType |
The packet type which should be used for any return packet type. If no return packet type is set returns null.
| |
SourceNetworkIdentifier |
The network identifier of the packets source peer. If no source network identifier is set returns null.
Also see [!:Connection.ConnectionInfo.NetworkIdentifier].
| |
TotalPayloadSize |
The total size in bytes of the payload.
|
See Also