The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
C-Class IntFrame wire format

Here are the various frame formats that we use for packaging single integers as whole frames. More...

Collaboration diagram for C-Class IntFrame wire format:

Here are the various frame formats that we use for packaging single integers as whole frames.

Below is the wire format for an 8-bit integer IntFrame.

+--------------+-----------+------------------+
|   frametype  | f_length  |  frame-value(s)  |
|   (16 bits)  |    1      |     1 byte       |
+--------------+-----------+------------------+

Below is the wire format for a 16-bit integer.

+--------------+-----------+------------------+
|   frametype  | f_length  |  2 byte integer  |
|   (16 bits)  |    2      |  net byte order  |
+--------------+-----------+------------------+

Below is the wire format for a 24-bit integer IntFrame.

+--------------+-----------+-------------.----------------+
|   frametype  | f_length  |  high-order . 2 byte integer |
|   (16 bits)  |    3      |     byte    . net byte order |
+--------------+-----------+-------------.----------------+

Below is the wire format for a 32-bit integer IntFrame.

+--------------+-----------+------------------+
|   frametype  | f_length  |  4 byte integer  |
|   (16 bits)  |    4      |  net byte order  |
+--------------+-----------+------------------+

Below is the wire format for a 64-bit integer IntFrame.

+-----------—+--------—+---------------—+
|   frametype  | f_length  |  8 byte integer  |
|   (16 bits)  |    8      |  net byte order  |
+-----------—+--------—+---------------—+