DotMSN |

# MSNSLPHandler Members

MSNSLPHandler overview

#### Public Static (Shared) Fields

FileTransferGuid | The guid used in invitations for a filetransfer.
UserDisplayGuid | The guid used in invitations for a user display transfer.

#### Public Instance Properties

ExternalEndPoint | The client end-point as perceived by the server. This can differ from the actual local endpoint through the use of routers. This value is used to determine how to set-up a direct connection.
LocalEndPoint | The client's local end-point. This can differ from the external endpoint through the use of routers. This value is used to determine how to set-up a direct connection.
MessageProcessor | The message processor to send outgoing p2p messages to.
MessageSession | The message session to send message to. This is simply the MessageProcessor property, but explicitly casted as a P2PMessageSession.

#### Public Instance Methods

CloseAllSessions | Closes all sessions by sending the remote client a closing message for each session available.
Dispose | Closes all sessions.
Equals (inherited from Object) | Determines whether the specified Object is equal to the current Object.
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.
HandleMessage | Handles incoming P2P Messages by extracting the inner contents and converting it to a MSNSLP Message.
SendInvitation | Overloaded. Sends the remote contact a request for the given context. The invitation message is send over the current MessageProcessor.
ToString (inherited from Object) | Returns a String that represents the current Object.

#### Public Instance Events

TransferInvitationReceived | Occurs when a remote client has send an invitation for a transfer session.
TransferSessionClosed | Occurs when a transfer session is closed. Either because the transfer has finished or aborted.
TransferSessionCreated | Occurs when a transfer session is created.

#### Protected Instance Constructors

MSNSLPHandler Constructor | Constructor.

#### Protected Instance Methods

CreateAcceptanceMessage | Creates a 200 OK message. This is called by the handler after the client-programmer has accepted the invitation.
CreateClosingMessage | Creates a message which is send directly after the last data message.
CreateDeclineMessage | Creates a 603 Decline message.
CreateHandshakeMessage | Creates the handshake message to send in a direct connection.
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.
GetNextDirectConnectionPort | Returns a port number which can be used to listen for a new direct connection.
GetTransferProperties | Returns the MSNSLPTransferProperties object associated with the specified call id.
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object.
OnDCRequest | Called when the remote client sends a file and sends us it's direct-connect capabilities. A reply will be send with the local client's connectivity.
OnDCResponse | Called when the remote client send us it's direct-connect capabilities
OnSessionCloseRequest | Called when a remote client closes a session.
OnSessionRequest | Called when a remote client request a session
OnTransferInvitationReceived | Fires the TransferInvitationReceived event.
OnTransferSessionClosed | Fires the TransferSessionClosed event.
OnTransferSessionCreated | Fires the TransferSessionCreated event and registers event handlers.
ParseInvitationMessage | Parses the incoming invitation message. This will set the class's properties for later retrieval in following messages.
RemoveTransferSession | Closes the session's datastream and removes the transfer sessions from the class' P2PMessageSession object (MessageProcessor property).
SendDCInvitation | Sends the invitation request for a direct connection

#### See Also

MSNSLPHandler Class | XihSolutions.DotMSN.DataTransfer Namespace