The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
C-Class IpPortFrame wire format (including port number)

Here is the format we use for packaging an IpPortFrame class for the wire. More...

Collaboration diagram for C-Class IpPortFrame wire format (including port number):

Here is the format we use for packaging an IpPortFrame class for the wire.

Note that different types of addresses are different lengths. The address types are either 1 for IPv4 or 2 for IPv6. This is the same as a NetAddr, and the same as RFC 3232 and is defined/described here: http://www.iana.org/assignments/address-family-numbers/address-family-numbers.xhtml

+----------—+-------------—+----------—+------------—+-----------------—+
| frametype   |    f_length    | Port Number | Address Type  |    address-data    |
|  16 bits)   |    (16-bits)   |   2 bytes   |   2 bytes     | (f_length-4 bytes) |
+----------—+-------------—+----------—+------------—+-----------------—+