Protocols/MSNP/Commands/UBX

From NINA Wiki
Revision as of 14:16, 22 June 2009 by AD (talk | contribs) (Typo: it was UBX and not UUX, right?)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

UBX

UBX is the sister command to UUX. UUX is used to set your personal message, UBX is sent by the server to all principles to inform them of the change (where B means Buddy). The format is similar to UUX; they are Protocols/MSNP/Payload commands where the first parameter is the Protocols/MSNP/Passport address of the contact who has just changed their personal message or currently playing song, and the second parameter is the length of the payload.

First time seen in version 11, changed in versions: 13 and 14

MSNP11

Syntax:

 >>> UBX passport@hotmail.com xxx\r\n
 <PSM>My Personal Message</PSM><CurrentMedia></CurrentMedia>
 >>> UBX passport@hotmail.com xxx\r\n
 <PSM></PSM><CurrentMedia>\0Music\01\0{0} - {1}\0Song Title\0
 Song Artist\0Song Album\0{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}\0</CurrentMedia>

('xxx' is the payload length) you can combine the 2 syntaxes together by putting your personal message in the 'PSM' and your media in 'CurrentMedia', but it is no recommended since only 1 of them will be shown. For further information, Visit UUX-MSNP11.

Note: even though the link is for UUX in MSNP11, the syntax is almost the same for MSNP 13/14. In MSNP13/14 there are only added fields.

MSNP13

Syntax:

>>> UBX sender@email.com (Length)\r\n
<PSM></PSM><CurrentMedia></CurrentMedia>
<MachineGuid>{F26D1F07-95E2-403C-BC18-D4BFED493428}</MachineGuid>

(The payload is in 1 line, it is displayed in 2 due to it length) As you can see, the only field added is the MachineGUID. For further information about the MachineGUID visit MachineGUID-MSNP13

MSNP14/15

Syntax:

>>> UBX source@mail.addr.ess networkid length
<PSM></PSM><CurrentMedia></CurrentMedia><MachineGuid>{F26D1F07-95E2-403C-BC18-D4BFED493428}</MachineGuid>

As you can see, the only parameter added is the networkid. For further information Visit Multiple Network.