The methods of the P2PTransferSession class are listed below. For a complete list of P2PTransferSession class members, see the P2PTransferSession Members topic.
![]() | Aborts the datatransfer, if available. This will send a P2P abort message and stop the sending thread. It will not close a direct connection. If AutoCloseStream is set to true, the datastream will be closed. |
![]() | Determines whether the specified Object is equal to the current 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. |
![]() | Gets the Type of the current instance. |
![]() | Handles P2PMessages. Other messages are ignored. All incoming messages are supposed to belong to this session. |
![]() | Registers handlers for incoming p2p messages. |
![]() | Sends a message for this session to the message processor. If a direct connection is established the p2p message is directly send to the message processor. If there is no direct connection available, it will wrap the incoming p2p message in a MSGMessage with the correct parameters. It also sets the identifiers and acknowledge session, provided they're not already set. |
![]() | Starts a seperate thread to send the data in the stream to the remote client. It will first wait for a direct connection if tryDirectConnection is set to true. |
![]() | Returns a String that represents the current Object. |
![]() | Unregisters handlers. |
![]() | Aborts a running data transfer thread. |
![]() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. |
![]() | Creates a shallow copy of the current Object. |
![]() | Fires the TransferAborted event. |
![]() | Fires the TransferFinished event. |
![]() | Fires the TransferStarted event. |
![]() | Sends the remote client a p2p message with the 0x80 flag to abort. |
![]() | Sends the remote client a p2p message with the 0x40 flag to indicate we are going to close the connection. |
![]() | Entry point for the thread. This thread will send the data messages to the message processor. In case it is a direct connection P2PDCMessages will be send. If no direct connection is established P2PMessage objects are wrapped in a SBMessage object and send to the message processor. Which is in the latter case probably a SB processor. |
P2PTransferSession Class | XihSolutions.DotMSN.DataTransfer Namespace