htonll man page on SmartOS

Printed from http://www.polarhome.com/service/man/?qf=htonll&af=0&tf=2&of=SmartOS

BYTEORDER(3SOCKET)					    BYTEORDER(3SOCKET)

NAME
       byteorder,  htonl, htonll, htons, ntohl, ntohll, ntohs - convert values
       between host and network byte order

SYNOPSIS
       cc [ flag... ] file... -lsocket	-lnsl  [ library... ]
       #include <sys/types.h>
       #include <netinet/in.h>
       #include <inttypes.h>

       uint32_t htonl(uint32_t hostlong);

       uint64_t htonll(uint64_t hostlonglong);

       uint16_t htons(uint16_t hostshort);

       uint32_t ntohl(uint32_t netlong);

       uint64_t ntonll(uint64_t hostlonglong);

       uint16_t ntohs(uint16_t netshort);

DESCRIPTION
       These functions convert 16-bit, 32-bit, and 64-bit  quantities  between
       network	byte  order  and  host byte order. On some architectures these
       routines are defined as NULL macros in the include file <netinet/in.h>.
       On  other architectures, the routines are functional when the host byte
       order is different from network byte order.

       These functions are  most  often	 used  in  conjunction	with  Internet
       addresses  and  ports as returned by gethostent() and getservent(). See
       gethostbyname(3NSL) and getservbyname(3SOCKET).

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

       ┌───────────────┬─────────────────┐
       │ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
       ├───────────────┼─────────────────┤
       │MT-Level       │ Safe		 │
       └───────────────┴─────────────────┘

SEE ALSO
       gethostbyname(3NSL),	  getservbyname(3SOCKET),	inet.h(3HEAD),
       attributes(5)

				 Sep 10, 2008		    BYTEORDER(3SOCKET)
[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