[Previous] [Contents] [Index] [Next]

inet_netof()

Extract the network number from an Internet address

Synopsis:

#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

unsigned long inet_netof( struct in_addr in );

Library:

socket3r.lib, socket3s.lib

Description:

The inet_netof() routine returns the network number of an 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_aton().

Returns:

An Internet network number.

Classification:

Standard Unix, POSIX 1003.1g (draft)

Safety:
Interrupt handler Yes
Signal handler Yes
Thread Yes

See also:

inet_aton(), inet_lnaof()


[Previous] [Contents] [Index] [Next]