DotMSN

P2PDCHandshakeMessage Methods

The methods of the P2PDCHandshakeMessage class are listed below. For a complete list of P2PDCHandshakeMessage class members, see the P2PDCHandshakeMessage 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 Creates an acknowledgement message to a handshake message. This will only set the flag to 0 and
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 Writes no footer, but a 4 byte length size in front of the header.
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 P2PDCMessage) Parses a data message without the 4-byte length header and without a 4 byte footer.
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 (inherited from P2PDataMessage) Writes data in the inner message buffer.
WritePreparationBytes (inherited from P2PDataMessage) 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

P2PDCHandshakeMessage Class | XihSolutions.DotMSN.DataTransfer Namespace