htonll()
#
htonll()
converts a 64-bit integer from host byte order to network byte order, ensuring correct endianness for network communication.
Prototype
uint64_t htonll(uint64_t value);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The 64-bit integer to be converted to network byte order. |
Return Value
Returns the 64-bit integer in network byte order.
Notes
If the system is little-endian, the function swaps the byte order; otherwise, it returns the value unchanged.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples