![]() |
![]() |
![]() |
![]() |
Extract the local network address from an Internet address
#include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> unsigned long inet_lnaof( struct in_addr in );
socket3r.lib, socket3s.lib
The inet_lnaof() routine returns the local network address for an Internet address.
All Internet addresses are returned in network-byte 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().
A local network address.
Standard Unix, POSIX 1003.1g (draft)
Safety: | |
---|---|
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |
![]() |
![]() |
![]() |
![]() |