Go to the previous, next section.

The Internet Namespace

This section describes the details the protocols and socket naming conventions used in the Internet namespace.

To create a socket in the Internet namespace, use the symbolic name PF_INET of this namespace as the namespace argument to socket or socketpair. This macro is defined in `sys/socket.h'.

Macro: int PF_INET

This designates the Internet namespace and associated family of protocols.

A socket address for the Internet namespace includes the following components:

You must ensure that the address and port number are represented in a canonical format called network byte order. See section Byte Order Conversion, for information about this.

Go to the previous, next section.