delorie.com/djgpp/doc/libc/libc_464.html | search |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <netinet/in.h> unsigned long htonl(unsigned long val); |
This function converts from host formatted longs to network formatted longs. For the i386 and higher processors, this means that the bytes are swapped from 1234 order to 4321 order.
The network-order value.
ANSI/ISO C | No |
POSIX | No |
packet.ipaddr = htonl(ip); |
webmaster | delorie software privacy |
Copyright © 2004 | Updated Apr 2004 |