Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ns(7) — CLIX 3.1r7.6.28

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

byteorder(3)

getnetent(3)

getservent(3)

getprotoent(3)

gethostbyname(3)

spp(7)

intro(3)

intro(7)



  ns(7)                               CLIX                               ns(7)



  NAME

    ns - Xerox Network Systems protocol family

  DESCRIPTION

    The ns protocol family is a collection of protocols layered on top of the
    Internet Datagram Protocol (IDP) transport layer using the Xerox Network
    Systems (XNS) address formats.  The ns family provides protocol support
    for the sock_stream and sock_dgram socket types.

  Addressing

    ns addresses are 12-byte quantities, consisting of a 4-byte network
    number, a 6-byte host number, and a 2-byte port number.  All numbers are
    stored in network-standard format.  On the CLIPPER, these numbers are word
    and byte reversed.  The include file <netns/ns.h> defines the ns address
    as a structure containing unions (for quicker comparisons).

    Sockets in the ns protocol family use the following addressing structure:

    struct sockaddr_ns {
         u_short        sns_family;
         struct ns_addr sns_addr;
         char           sns_zero[2];
    };

    An ns_addr is composed as follows:

    union ns_host {
         u_char        c_host[6];
         u_short       s_host[3];
    };

    union ns_net {
         u_char        c_net[4];
         u_short       s_net[2];
    };

    struct ns_addr {
         union ns_net  x_net;
         union ns_host x_host;
         u_short       x_port;
    };

    Sockets may be created with an address of all zeros to effect ``wildcard''
    matching on incoming messages.

  Protocols

    The ns protocol family supported by the operating system is Sequenced



  2/94 - Intergraph Corporation                                              1






  ns(7)                               CLIX                               ns(7)



    Packet Protocol (SPP).  SPP is used to support the sock_stream
    abstraction.

  RELATED INFORMATION

    Functions:  byteorder(3), getnetent(3), getservent(3) getprotoent(3),
    gethostbyname(3)

    Files:  spp(7)

    Miscellany:  intro(3), intro(7)

    Internet Transport Protocols, Xerox Corporation document XSIS-028112

    CLIX Programming Guide







































  2                                              Intergraph Corporation - 2/94




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