Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

gethostbyname(3)

getservent(3)



  byteorder(3)                        CLIX                        byteorder(3)



  NAME

    byteorder:  htonl, htons, ntohl, ntohs - Convert values between host and
    network byte order

  LIBRARY

    Berkeley Software Distribution Library (libbsd.a)

  SYNOPSIS

    #include <sys/types.h>

    #include <netinet/in.h>

    u_long htonl(
      u_long hostlong );

    u_short htons(
      u_short hostshort );

    u_long ntohl(
      u_long netlong );

    u_short ntohs(
      u_short netshort );

  DESCRIPTION

    These functions convert 16- and 32-bit quantities between network and host
    byte order.  These functions are most often used with Internet addresses
    and ports as returned by gethostbyname() and getservent().

  RELATED INFORMATION

    Functions:  gethostbyname(3), getservent(3)


















  2/94 - Intergraph Corporation                                              1




Typewritten Software • bear@typewritten.org • Edmonds, WA 98026