convert a network number and a local network address into an Internet address
#include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> struct in_addr inet_makeaddr( unsigned long net, unsigned long lna );
The inet_makeaddr() routine takes an Internet network number and a local network address and constructs 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().
An Internet address.
UNIX
Safety: | |
---|---|
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |