Skip to main content

Example of Message Encoding

Consider a situation in which the user "sandy" is logged into the console of system "alpha", and wishes to send a message to the user "chris". "chris" is known to be logged in on the system "beta" but the exact terminal is unknown. The message consists of two lines of text, "Hi" followed by "How about lunch?".

The message would be encoded as follows:

             +--------+---------+---------+---------+
0 | B | c | h | r |
+--------+---------+---------+---------+
4 | i | s | <NULL> | <NULL> |
+--------+---------+---------+---------+
8 | H | i | <CR> | <LF> |
+--------+---------+---------+---------+
12 | H | o | w | |
+--------+---------+---------+---------+
16 | a | b | o | u |
+--------+---------+---------+---------+
20 | t | | l | u |
+--------+---------+---------+---------+
24 | n | c | h | ? |
+--------+---------+---------+---------+
28 | <NULL>| s | a | n |
+--------+---------+---------+---------+
32 | d | y | <NULL> | c |
+--------+---------+---------+---------+
36 | o | n | s | o |
+--------+---------+---------+---------+
40 | l | e | <NULL> | 9 |
+--------+---------+---------+---------+
44 | 1 | 0 | 8 | 0 |
+--------+---------+---------+---------+
48 | 6 | 1 | 2 | 1 |
+--------+---------+---------+---------+
52 | 3 | 2 | 5 | <NULL> |
+--------+---------+---------+---------+
56 | <NULL> |
+--------+

Note that the RECIP-TERM and SIGNATURE parts are empty. The COOKIE is the string "910806121325", which in this implementation indicates that the message was sent at 12:13:25 on the 6th of August, 1991. The identity if the sending and receiving systems is not included in the message; the server must obtain this information from the transport service.