v/vlib/net/conv
2023-10-25 11:19:56 +03:00
..
conv.v vlib: fix typos and formatting (#19649) 2023-10-25 11:19:56 +03:00
conv_test.v net.conv: add varinttou64 and u64tovarint functions, for the variable unsigned integer encoding, described in rfc9000 (for QUIC) (#19568) 2023-10-16 14:01:30 +03:00
README.md net.conv: use a pure v implementation instead of C.hton etc (#18226) 2023-05-22 06:59:33 +03:00

Description:

net.conv provides a convenient way to convert number values to, and from the network byte order format (which is always big endian).

When communicating across a network, it is possible that the machines use different byte orders, since the host format of each system can vary, depending on the CPU, and on most systems, is usually little endian.

To avoid mismatches due to that, the network byte order is used by convention to send network data in a manner that will be received coherently, regardless of the endianness of the sender system and the receiver system.