DotMSN

P2PDataMessage Members

P2PDataMessage overview

Public Instance Constructors

P2PDataMessage Constructor Constructs a P2P data message.

Public Instance Properties

AckIdentifier (inherited from P2PMessage) Acknowledge identifier. Set when the message is an acknowledgement to a received message. Bytes 37-40 in the binary header.
AckSessionId (inherited from P2PMessage) Acknowledge session identifier. Acknowledgement messages respond with this number in their acknowledge identfier. Bytes 33-36 in the binary header.
AckTotalSize (inherited from P2PMessage) Acknowledged total message length. Set when the message is an acknowledgement to a received message. Bytes 41-48 in the binary header.
Flags (inherited from P2PMessage) Flag parameter. Bytes 29-32 in the binary header.
Footer (inherited from P2PMessage) The footer, or Application Identifier. Bytes 0-4 in the binary footer.
Identifier (inherited from P2PMessage) 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 (inherited from P2PMessage) Indicates whether the message is an acknowledgement message
MessageSize (inherited from P2PMessage) Message length in bytes of the current message. Bytes 25-28 in the binary header.
Offset (inherited from P2PMessage) 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 (inherited from P2PMessage) The session identifier field. Bytes 0-4 in the binary header.
TotalSize (inherited from P2PMessage) 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 (inherited from P2PMessage) 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 (inherited from P2PMessage) 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 (inherited from P2PMessage) Parses the given message.
PrepareMessage (inherited from P2PMessage) Sets the D as acknowledgement in the ParentMessage.ParentMessage. This should be a SBMessage object.
ToDebugString (inherited from NetworkMessage) Textual presentation.
ToString
WriteBytes Writes data in the inner message buffer.
WritePreparationBytes Writes 4 nul-bytes in the inner body. This message can then be used as a data preparation message.

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.
FlipEndian (inherited from P2PMessage)Overloaded. Flips the bytes of the unsigned integer.
GetInnerBytes (inherited from P2PMessage) 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

P2PDataMessage Class | XihSolutions.DotMSN.DataTransfer Namespace