DotMSN |

# P2PDataMessage Methods

The methods of the P2PDataMessage class are listed below. For a complete list of P2PDataMessage class members, see the P2PDataMessage Members topic.

#### 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