inet man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

INET.H(3HEAD)							 INET.H(3HEAD)

NAME
       inet.h, inet - definitions for internet operations

SYNOPSIS
       #include <arpa/inet.h>

DESCRIPTION
       The   <arpa/inet.h>   header  defines  the  type	 in_port_t,  the  type
       in_addr_t, and the in_addr structure, as described in in.h(3HEAD).

       Inclusion of the <arpa/inet.h> header may also make visible all symbols
       from in.h(3HEAD).

       The  following  are  declared  as functions, and may also be defined as
       macros:

	 in_addr_t	 inet_addr(const char *);
	 in_addr_t	 inet_lnaof(struct in_addr);
	 struct in_addr	 inet_makeaddr(in_addr_t, in_addr_t);
	 in_addr_t	 inet_netof(struct in_addr);
	 in_addr_t	 inet_network(const char *);
	 char		 *inet_ntoa(struct in_addr);

   Default
       For applications	 that  do  not	require	 standard-conforming  behavior
       (those  that  use  the socket interfaces described in section 3N of the
       reference manual; see Intro(3) and standards(5)), the following may  be
       declared as functions, or defined as macros, or both:

	 uint32_t    htonl(uint32_t);
	 uint16_t    htons(uint16_t);
	 uint32_t    ntohl(uint32_t);
	 uint16_t    ntohs(uint16_t);

   Standard conforming
       For  applications that require standard-conforming behavior (those that
       use the socket interfaces described in section  3XN  of	the  reference
       manual;	see  Intro(3) and standards(5)), the following may be declared
       as functions, or defined as macros, or both:

	 in_addr_t    htonl(in_addr_t);
	 in_port_t    htons(in_port_t);
	 in_addr_t    ntohl(in_addr_t);
	 in_port_t    ntohs(in_port_t);

ATTRIBUTES
       See attributes(5) for descriptions of the following attributes:

       ┌────────────────────┬─────────────────┐
       │  ATTRIBUTE TYPE    │ ATTRIBUTE VALUE │
       ├────────────────────┼─────────────────┤
       │Interface Stability │ Standard	      │
       └────────────────────┴─────────────────┘

SEE ALSO
       Intro(3),     htonl(3SOCKET),	 htonl(3XNET),	   inet_addr(3SOCKET),
       inet_addr(3XNET), in.h(3HEAD), attributes(5), standards(5)

				 Aug 30, 2002			 INET.H(3HEAD)
[top]

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net