DotMSN

P2PMessage Members

P2PMessage overview

Public Instance Constructors

P2PMessage Constructor

Public Instance Properties

AckIdentifier Acknowledge identifier. Set when the message is an acknowledgement to a received message. Bytes 37-40 in the binary header.
AckSessionId Acknowledge session identifier. Acknowledgement messages respond with this number in their acknowledge identfier. Bytes 33-36 in the binary header.
AckTotalSize Acknowledged total message length. Set when the message is an acknowledgement to a received message. Bytes 41-48 in the binary header.
Flags Flag parameter. Bytes 29-32 in the binary header.
Footer The footer, or Application Identifier. Bytes 0-4 in the binary footer.
Identifier The identifier of this message. Bytes 5-8 in the binary header.
InnerBody (inherited from NetworkMessage) The inner body contents. Null if not present.
InnerMessage (inherited from NetworkMessage) The inner message object. Null if not present.
IsAcknowledgement Indicates whether the message is an acknowledgement message
MessageSize Message length in bytes of the current message. Bytes 25-28 in the binary header.
Offset The offset in bytes from the begin of the total message. Bytes 9-16 in the binary header.
ParentMessage (inherited from NetworkMessage) The inner message object. Null if not present.
SessionId The session identifier field. Bytes 0-4 in the binary header.
TotalSize Total message length in bytes. Bytes 17-24 in the binary header.

Public Instance Methods

AppendArray (inherited from NetworkMessage) Helper method. Appends one array to the other. The second parameter, appendingArray, can be null. In that case the original byte array is returned and no copy is made.
CreateAcknowledgement Creates an acknowledgement message to this message.
CreateFromMessage (inherited from NetworkMessage) Creates the networkmessage based on the inner contents of the parent message. It invokes the ParseBytes method to parse the inner body contents of the parent message.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetBytes Creates a P2P Message. This sets the MessageSize properly.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
ParseBytes Parses the given message.
PrepareMessage Sets the D as acknowledgement in the ParentMessage.ParentMessage. This should be a SBMessage object.
ToDebugString (inherited from NetworkMessage) Textual presentation.
ToString Returns debug info

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
FlipEndianOverloaded. Flips the bytes of the unsigned integer.
GetInnerBytes Returns the inner message as a byte array.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
OnInnerMessageSet (inherited from NetworkMessage) Called when the innermessage property is set. This sets the ParentMessage property on the inner message object
OnParentMessageSet (inherited from NetworkMessage) Called when the parent message is set. This sets the InnerMessage property on the parent message object.

See Also

P2PMessage Class | XihSolutions.DotMSN.DataTransfer Namespace