Frame of type 3 is used to send messages between two clients. Schema of data blocks of type3 frame:
FRDT=FLAGS MSGIDSZ MSGID TYPESZ TYPE FROMSZ FROM TOSZ TO MSGDT
Table 25. Description of fields
Item | Size | Size |
---|---|---|
FLAGS | 4 | Flags, reserved for future use, have to be 0 |
MSGIDSZ | 4 | Size of message identifier |
MSGID | MSGIDSZ | Message identifier |
TYPESZ | 4 | Size of message type |
TYPE | TYPESZ | Type of message (string) |
FROMSZ | 4 | Size of identifier |
FROM | FROMSZ | From (string) |
TOSZ | 4 | Size of identifier |
TO | TOSZ | To (string) |
MSGDT | FRSZ-4-4-MSGIDSZ-4-TYPESZ-4-FROMSZ-4-TOSZ | Message data. Router isn't message format aware. Data size can be 0 |
Message type: Protocol.XXXXX is reserved for service messages.
All service messages have to preserve original MSGID.
Message Protocol.CannotDispatch will be send back to the message sender when message cannot be delivered to the next node. Message data can be empty or 4byte error code and text description.
Table 26. Error codes
Error code | Description |
---|---|
0x0001 | Unknown user/to |
0x0002 | user/to is not connected |
0x0003 - 0x1000 | reserverd for future use |