Skip to main content

Command Protocol

[Note on terminology:

  • ASCII: 7 bit characters, packed 5 to a 36 bit word, with the low order bit 0. In all following examples the contents of a string are delimited with "/".
  • ASCIZ: ASCII, terminated with a character (7 bits) of zero.
  • SIXBIT: 6 bit characters, packed 6 to a 36 bit word. A sixbit character + 60 (octal) = the equivalent ASCII character.
  • byte: unless otherwise stated is 36 bits.
  • XWD A,B: Half words. 18 high order bits = A, 18 low order bits = B.]

USINF​

To obtain information about a user at the server's site

  1. user sends:

    byte 1: ASCII /USINF/
    byte 2->k: ASCIZ /USERNAME/
  2. server responds:

    neg ack: 1 byte = XWD 0, error #  ;no such user

    pos ack: byte 1: -1
    byte 2->n: XWD job #, tty #
    where tty # = -1 if job detached
    byte n+1: -1

SSTAT​

To obtain the active users at the server's site

  1. user sends:

    byte 1: ASCII /SSTAT/
  2. server responds:

    neg ack: 1 byte =  0

    pos ack: 1 byte = -1
    followed by data blocks of the form

    a. 1 byte = -1 ;means end of transmission
    or
    b. byte 1: XWD job #,tty #
    byte 2: SIXBIT /subsys name/
    byte 3->n: ASCIZ /USERNAME/

To link to a user terminal at the server site

  1. user sends:

    byte 1: ASCII /LINK/
    byte 2: terminal #
  2. server responds:

    neg ack: 1 byte = 0

    pos ack: 1 byte = number N ;means server will attempt link
  3. if positive acknowledgement server and user try to establish the two 8 bit connections:

    N + 1 --> U

    N --> U + 1

    where U is the socket used by the user to initiate the ICP.

    These connections are to be used to carry text to and from the linked tty at the server's site.

  4. server responds (a second time):

    neg ack: 1 byte = 0   ;means can't establish connections or
    ;couldn't make the link

    pos ack: 1 byte = -1 ;means link to tty established and
    ;anything transmitted over the
    ;connections will go to linked tty.

BREAK​

To break a link previously established to a terminal at the server site:

  1. user sends:

    byte 1: ASCII /BREAK/
  2. server responds:

    neg ack: 1 byte = XWD 0,error #

    pos ack: 1 byte = -1 ;link successfully broken

TERMINATE​

To terminate connection with the server the user can either send a single byte = 0 or just close the connections. The former is preferred. The server responds by breaking the connections.

[This RFC was put into machine readable form for entry into the online RFC archives by H�l�ne Morin, Viag�nie, 12/99]