Top "Htonl" questions

Is there any "standard" htonl-like function for 64 bits integers in C++?

I'm working on an implementation of the memcache protocol which, at some points, uses 64 bits integer values. These values must …

c++ 64-bit portability endianness htonl
Does cast between signed and unsigned int maintain exact bit pattern of variable in memory?

I want to pass a 32-bit signed integer x through a socket. In order that the receiver knows which byte …

c casting int unsigned htonl
ntohs() and ntohl() equivalent?

Are there net to host conversion functions in C#? Googling and not finding much. :P

c# htonl
When and how to use C++ htonl function

cout << "Hello World !" << endl; For my very first post on stackoverflow: When are we supposed to …

c++ htonl
How to set sockaddr_in6::sin6_addr byte order to network byte order?

I developing a network application and using socket APIs. I want to set sin6_addr byte order of sockaddr_in6 …

sockets networking byte htonl
Confusion in htons- little endian/ big endian

When I send a integer variable from one process to other through socket, and then printing the value at received …

c network-programming endianness htonl
ntohl() vs htonl() in Little Endian

Kindly clarify my doubt as i got so confused with the below stuff and i couldnt get a clean anwser …

c endianness htonl
Is network byte order pointless under IPv6?

If we use a 32-bit integer to store an IPv4 address, then the byte order of the integer must be …

c++ c ipv6 ipv4 htonl
Cross-platform definition of _byteswap_uint64 and _byteswap_ulong

Visual Studio defines _byteswap_uint64 and _byteswap_ulong in stdlib.h. Am I right to assume, that this is not …

include cross-platform endianness htonl