2.2.14.1 Attach Command Fields

The Attach command fields are defined as shown in the following table.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

CommandId

CommandLength

EventId

...

A

...

AccountURL (variable)

...

AuthenticationTokenLength

AuthenticationToken (variable)

...

CommandId (1 byte): The command identifier. This field MUST be set to 0x08.

CommandLength (2 bytes): The total length of the command, in bytes.

EventId (4 bytes): The session identifier for this attach session, as specified in section 3.2.4.1.2.

A - ResourceURL (variable): A variable-length ASCII string terminated by 0x00 containing the relay URL of the relay server authenticating the account. This field MAY be an empty string.

AccountURL (variable): A variable-length ASCII string terminated by 0x00 containing the URL of the account to be authenticated. This field MUST NOT be empty.

AuthenticationTokenLength (2 bytes): The length in bytes of the AuthenticationToken field.

AuthenticationToken (variable): A byte sequence that is used to authenticate the sender of the Attach command.