DotMSN |

# P2PMessageSession Class

P2PMessageSession routes all messages in the p2p framework between the local client and a single remote client.

For a list of all members of this type, see P2PMessageSession Members.

System.Object
XihSolutions.DotMSN.DataTransfer.P2PMessageSession

[Visual Basic]
Public Class P2PMessageSession
Implements IMessageHandler, IMessageProcessor
[C#]
public class P2PMessageSession : IMessageHandler, IMessageProcessor

#### Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

#### Remarks

A single message session can hold multiple p2p transfer sessions. This for example occurs when a contact sends two files directly after each other in the same switchboard session. This class keeps track of the message identifiers, dispatches messages to registered message handlers and routes data messages to the correct P2PTransferSession objects. Usually this class is a handler of a switchboard processor. A common handler for this class is MSNSLPHandler.

#### Requirements

Namespace: XihSolutions.DotMSN.DataTransfer

Assembly: XihSolutions.DotMSN (in XihSolutions.DotMSN.dll)

#### See Also

P2PMessageSession Members | XihSolutions.DotMSN.DataTransfer Namespace