From BluWiki
THE TCP/HORMONE PROTOCOL v. 1.0
===============================
The TCP/Hormone protocol is specially designed for situations
where the overhead incurred is not specially important. Indeed,
if you are using this protocol, you should not be worried
about time (wink, wink).
Here follows the contents of a typical TCP/H packet:
0----2----------------10------------16
| SX | Flags | Port |
0------------6------------12--------16
| Sender T. | Recv T. | Length |
0----------------8------------------16
| Sender Addr. | Receiver Addr. |
0-----------------------------------16
| Message |
-------------------------------------
- SX: Package header
- Flags: 8 flags can be set. They are divided in two kinds:
- Sender flags: specifies several characteristics of the sender:
- MALE
- FEMALE
- MALE-FEMALE (each application should define the exact meaning
of this flag, depending on sender type)
- MULTI
- NON-SEXUAL
- Message type: specifies the reason for the message:
- REQ (Request)
- ACK (Acknowledge)
- DEN (Denial)
- When the contact has been reached, none of these flags should
be set
- Sender and Receiver Type: specifies the race and/or subrace of
both sender and receiver. These two values are reserved_
000000 - Humans
000001 - Flatworms and other plathelmyntes
- Length: length of the message that is being sent (in bytes)
- Sender and Receiver Address: an 8-bit value that uniqly determines
the people who is having the 'conversation'. Several values are reserved
00000000 - localhost
11111111 - none
- Message
Examples of TCP/H packages
--------------------------
0000100110000001
0000010000010011
0000000000000000
0101010101101110
0110111000000000
TCP/H package from a male-female flatworm to other flatworm on port 1.
Sender and receiver will be both localhost. The message length is 3, and
the message is 55 6D 6D (ASCII: Umm)