inet_makeaddr()

Updated: April 19, 2023

Convert a network number and a local network address into an Internet address

Synopsis:

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

struct in_addr inet_makeaddr( in_addr_t net,
                              in_addr_t lna );

Arguments:

net
An Internet network number.
lna
The local network address.

Library:

libsocket

Use the -l socket option to qcc to link against this library.

Description:

The inet_makeaddr() routine takes an Internet network number and a local network address and constructs an IPv4 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_net_ntop().

Returns:

An Internet address.

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes