Table of contents:

Introduction

UBN is a command introduced with MSNP13.

It is a Notification Server command, WITH a response payload.

Retrieves a special message sent by another user from the Notification Server.
For the version of the command that is sent by the client, read UUN.

Client/Request

This command can not be sent from the client.

Server/Response

UBN user-handle{:machine-guid} type length
payload

Where user-handle is the user handle of the user who sent this to you.

Where machine-guid is the target sub-recipient of your user handle.

Where type is one of the following values:

Where length is the size (in bytes) of the payload.

Where payload is the data you'd like to send to the other user, of which the format of data depends on the type parameter.

XML data

<SNM opcode="opcode" csid="guid" {priority="priority"} {reason="reason"}/>

Where opcode is one of the following:

Where csid is a bracketed GUID that represents the relationship of this transaction.

Where priority, which is only seen with the opcode value set to SNM, is always set to 0.

Where reason, which is only seen with the opcode value set to either NAK or INFO, is set to a capitallized, prefixed hexadecimal representation of a HRESULT:

Log out from other machine

Since MSNP16.

Either use the value goawyplzthxbye or gtfo when using this mode.

Examples

NOTE: The XML in these examples has been exploded for visibility and formatting reasons. The payload sizes provided are to represent the size of the unexploded payloads.

XML data

Initial request

S: UBN example@hotmail.com 1 78
<SNM
	opcode="SNM"
	csid="{521A03BE-12AF-452D-A3C5-F7787D7A8267}"
	priority="0"
/>

Accept request

S: UBN example@hotmail.com 1 65
<SNM
	opcode="ACK"
	csid="{521A03BE-12AF-452D-A3C5-F7787D7A8267}"
/>

Decline request

S: UBN example@hotmail.com 1 85
<SNM
	opcode="NAK"
	csid="{521A03BE-12AF-452D-A3C5-F7787D7A8267}"
	reason="0x80070490"
/>

Send Information

S: UBN example@hotmail.com 1 86
<SNM
	opcode="INFO"
	csid="{521A03BE-12AF-452D-A3C5-F7787D7A8267}"
	reason="0x8F450001"
/>

Log out other machine

Since MSNP16.

C: UBN example@hotmail.com;{44bfd5a4-7450-4bda-ba3a-c51b3031126d} 4 14
goawyplzthxbye

Client disconnects from server.

Invalid context

Inherited from being an unimplemented command.

C: UBN 1 example@hotmail.com 1 0

Server disconnects client.

Known changes