|This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.|
Extract the network number from an Internet address
#include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> unsigned long inet_netof( struct in_addr in );
- An Internet address.
Use the -l socket option to qcc to link against this library.
The inet_netof() routine returns the network number of the specified IPv4 Internet address.
All Internet addresses are returned in network order (bytes are ordered from left to right). All network numbers and local address parts are returned as machine-format integer values. For more information on Internet addresses, see inet_net_ntop().
An Internet network number.