Library /sys$common/syshlp/HELPLIB.HLB  —  TCPIP Services, Programming Interfaces, Socket API Functions, ntohl()
    Converts longwords from network byte order to host byte order.
    Format
      #include  <in.h>
      unsigned long ntohl  ( unsigned long netlong );

1  –  Argument

 netlong
    A longword in network byte order. Integers in network byte order
    cannot be used for arithmetic computation on OpenVMS systems.

2  –  Description

    This function converts 32-bit unsigned integers from network byte
    order to host byte order.
    Data bytes transmitted over the network are expected to be
    in network byte order. Some hosts, like OpenVMS, have an
    internal data representation format that is different from the
    network byte order; this is called the host byte order. Network
    byte order places the byte with the most significant bits at
    lower addresses, but OpenVMS host byte order places the most
    significant bits at the highest address.
    This function can be used to convert IP addresses from network
    byte order to host byte order.

3  –  Return Value

    x                  A longword in host byte order.
Close Help