DotMSN |

# MSNSLPHandler Class

Handles invitations and requests for file transfers, emoticons, user displays and other msn objects.

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

System.Object
XihSolutions.DotMSN.DataTransfer.MSNSLPHandler

[Visual Basic]
Public Class MSNSLPHandler
Implements IMessageHandler, IDisposable
[C#]
public class MSNSLPHandler : IMessageHandler, IDisposable

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

MSNSLPHandler is responsible for communicating with the remote client about the transfer properties. This means receiving and sending details about filelength, filename, user display context, etc. When an invitation request is received the client programmer is asked to accept or decline the invitation. This is done through the TransferInvitationReceived event. The client programmer must handle this event and set the Accept and DataStream property in the event argument, see MSNSLPInvitationEventArgs. When the receiver of the invitation has accepted a P2PTransferSession is created and used to actually send the data. In the case of user displays or other msn objects the data transfer always goes over the switchboard. In case of a file transfer there will be negotiating about the direct connection to setup. Depending on the connectivity of both clients, a request for a direct connection is send to associated the P2PTransferSession object.

#### Requirements

Namespace: XihSolutions.DotMSN.DataTransfer

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

#### See Also

MSNSLPHandler Members | XihSolutions.DotMSN.DataTransfer Namespace