Protocols/MSNP/Commands/SDC

From NINA Wiki
Jump to navigation Jump to search
MSNP Protocol
IntroductionTermsClients
Reference
Error ListCommandsRelying Party SuiteSpotlife
Services
XMPPHTTP GatewayTabsActivities
Documentation
Development ToolsMSNP Grid
PolygamyURLs used by MSN
Documents
Protocol Versions
Version 21
Version 18
Version 16
Version 15
Version 14
Version 13
Version 12
Version 11
Version 9
Version 8
Version 2
MSNC
IntroductionP2PObject DescriptorDisplay PicturesFile Transfer
Scenarios
Microsoft Messenger for Mac
MSNP on WebTV (MSNTV)

SDC

You can send an e-mail saying "<your-name> wants to talk to you!" to a specified e-mail address with the SDC command. It's a payload command.

Sent to server

Description

SDC trid invite_passport locale_id MSMSGS WindowsMessenger X X your_name length\r\n
    your_message (no newline)

Parameters

  • trid: Transaction ID
  • invite_passport: The passport email address to invite.
  • locale_id: Believed to be the hexadecimal Protocols/MSNP/Locale ID - eg "0x0409" for US English
  • your_name: The URL encoded name of the person sending the invitation.
  • length: The length of the payload (the part after the \r\n)
  • your_message: A personal message of the person sending the invitation.

Server returns

Description

SDC trid OK

Other notes

It appears that you can only invite MS Passport members. The "MSMSGS WindowsMessenger X X" parameters in the SDC command you send to the server are unknown. However, it is noticed that changing the MSMSGS parameter to something else results in a 710 error.

Example

If I wanted to contact someone with the address "example@passport.com", with the message "Hi Mike!", I might send the following:

>>> SDC 3 example@passport.com 0x0409 MSMSGS WindowsMessenger X X Andrew%20Sayers 8\r\n
    Hi Mike! (no newline)

If the message was successfully sent, the server will return an SDC response with a TrID and a single parameter of "OK":

<<< SDC 21 OK\r\n