The Packet type exposes the following members.
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
Packet(String, Object, SendReceiveOptions) |
Create a new packet
| |
Packet(String, String, Object, SendReceiveOptions) |
Create a new packet
|
Methods
Name | Description | |
---|---|---|
Deserialize(Stream) |
Deserializes from a Stream to the current IExplicitlySerialize object
| |
Deserialize(Stream, Packet ) |
Deserializes from a memory stream to a Packet object
| |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
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.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SerialiseHeader |
Returns the serialised bytes of the packet header appended by the serialised header size. This is required to
rebuild the header on receive.
| |
Serialize |
Serializes the current IExplicitlySerialize object to the provided Stream | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
PacketData |
The payload data stream
| |
PacketHeader |
The packet header for this packet
|
See Also