Timestamp (#1A):
tag-name | tag-id | format | comment |
#0000 | Tag-set | "MSG " | the standard MSG tag-set |
#0001 | Version | t.b.d. 32 bits | the version of the tag-set |
#0010 | Timestamp | t.b.d. | The time the message was sent |
#0011 | MessageId | 32 bit integer | a unique id for the tcp channel for the message |
#0012 | CorrelationId | 32 bit integer | an id referring back to a message to which this is a reply |
tag-name | tag-id | format | comment |
#0000 | Tag-set | "MOB " | The MOB (Messaging Object) tag-set |
#0010 | DestinationMob | 32 bit integer | specific tags for a certain tagset, start numbering above #1000 |
#0011 | ReplyToMob | 32 bit integer | the id of the Mob to which a reply should be sent |
byte-number | byte1 | byte2 | byte3 | byte4 | comment |
#0000 | #00 | #00 | #00 | #3A | total length (#0000003A) |
#0004 | #00 | #00 | #00 | #30 | body start position (#00000030) |
#0008 | #00 | #00 | #00 | #04 | tagset tag (#0000) with 4 byte value |
#000B | #4D | #53 | #47 | #00 | MSG (padded with a null character) |
#0010 | #00 | #11 | #00 | #04 | MessageId tag (#0011) with 4-byte value |
#0014 | #12 | #34 | #56 | #78 | MessageId value |
#0018 | #00 | #00 | #00 | #04 | tagset tag (#0000) with 4-byte value |
#001B | #4D | #4F | #42 | #00 | MOB (padded with 0 character) |
#0020 | #00 | #10 | #00 | #04 | DestinationMob tag (#0010) with 4 byte value |
#0024 | #00 | #00 | #17 | #32 | DestinationMob value (#00001732) |
#0028 | #00 | #11 | #00 | #04 | ReplyToMob tag (#0011) with 4 byte value |
#002B | #00 | #00 | #31 | #73 | ReplyToMob value (#00003173) |
#0030 | #48 | #45 | #4C | #4C | BODY of message: "HELL" |
#0034 | #4F | #20 | #57 | #4F | BODY of message: "O WO" |
#0038 | #52 | #4C | #44 | BODY of message: "RLD" |
Tagset: MSG MessageId: #12345678 Tagset: MOB DestinationMob: #00001732 ReplyToMob: #00003173 11:HELLO WORLDNote: This message is 108 bytes long. The previous binary SYIMP message was only(?) 58 bytes. Furthermore, messages of ASCII type need more complex marshalling and parsing, especially of number values. Which case is more effective can depend on the specific application, but the choice between functionally equivalent protocols might make it easier to switch between them.