The methods of the P2PMessageSession class are listed below. For a complete list of P2PMessageSession class members, see the P2PMessageSession Members topic.
![]() | Aborts all running transfer sessions. |
![]() | Adds the specified transfer session to the collection and sets the transfer session's message processor to be the message processor of the p2p message session. This is usally a SB message processor. |
![]() | Removes references to handlers and the messageprocessor. Also closes running transfer sessions and pending processors establishing connections. |
![]() | Closes the direct connection with the remote client, if available. A closing p2p message will be send first. The session will fallback to the previous (SB) message processor. |
![]() | Corrects the local identifier with the specified correction. |
![]() | Creates a direct connection with the remote client. |
![]() | Determines whether the specified Object is equal to the current Object. |
![]() | Searches through all handlers and returns the first object with the specified type, or null if not found. |
![]() | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. |
![]() | Returns the transfer session associated with the specified session identifier. |
![]() | Gets the Type of the current instance. |
![]() | Handles P2PMessages. Other messages are ignored. All incoming messages are supposed to belong to this session. |
![]() | The identifier of the local client, increases with each message send |
![]() | The identifier of the remote client, increases with each message received |
![]() | Setups a P2PDirectProcessor to listen for incoming connections. After a connection has been established the P2PDirectProcessor will become the main MessageProcessor to send messages. |
![]() | Registers a message handler. After registering the handler will receive incoming messages. |
![]() | Removes the specified transfer session from the collection. |
![]() | Sends incoming p2p messages to the remote contact. |
![]() | Returns a String that represents the current Object. |
![]() | Unregisters a message handler. After registering the handler will no longer receive incoming messages. |
![]() | Add the processor to the pending list. |
![]() | Buffer messages that can not be send because of an invalid message processor. |
![]() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. |
![]() | Sets the processor as invalid, and requests the p2phandler for a new request. |
![]() | Creates a shallow copy of the current Object. |
![]() | Occurs when an acknowledgement to a send handshake has been received, or a handshake is received. This will start the data transfer, provided the local client is the sender. |
![]() | Fires the ProcessorInvalid event. |
![]() | Try to resend any messages that were stored in the buffer. |
![]() | Sends the handshake message in a direct connection. |
![]() | Disconnect all processors that are trying to establish a connection. |
![]() | Use the given processor as the direct connection processor. And disconnect all other pending processors. |
![]() | Sets the processor as valid. |
![]() | Wraps a P2PMessage in a MSGMessage and SBMessage. |
P2PMessageSession Class | XihSolutions.DotMSN.DataTransfer Namespace