home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / rfc / 600s / rfc658.txt < prev    next >
Text File  |  1992-10-14  |  6KB  |  120 lines

  1. D. Crocker (UCLA-NMC)
  2. RFC 658, NIC 31161 (Oct. 25, 1974)
  3. Online file: [ISI]<DCROCKER>NAOLFD.TXT
  4.  
  5.                   TELNET OUTPUT LINEFEED DISPOSITION
  6.  
  7. 1. Command name and code
  8.    NAOLFD 16 
  9.       (Negotiate About Output Linefeed Disposition)
  10.  
  11. 2. Command meanings
  12.    In the following, we are discussing a simplex connection, as described in 
  13.    the NAOL and NAOP Telnet Options.
  14.       IAC DO NAOLFD 
  15.          The data sender requests or agrees to negotiate about output
  16.          linefeed disposition with the data receiver.  In the case where
  17.          agreement has been reached and in the absence of further
  18.          subnegotiations, the data receiver is assumed to be handling output
  19.          linefeed considerations.
  20.       IAC DON'T NAOLFD 
  21.          The data sender refuses to negotiate about output linefeed
  22.          disposition with the data receiver, or demands a return to the
  23.          unnegotiated default mode.
  24.       IAC WILL NAOLFD 
  25.          The data receiver requests or agrees to negotiate about output
  26.          linefeed disposition with the sender.  In the case where agreement
  27.          has been reached and in the absence of further subnegotiations, the
  28.          data receiver alone is assumed to be handling output linefeed
  29.          considerations.
  30.       IAC WON'T NAOLFD 
  31.          The data receiver refuses to negotiate about output linefeed 
  32.          disposition, or demands a return to the unnegotiated default mode. 
  33.       IAC SB NAOLFD DS <8-bit value> IAC SE
  34.          The data sender specifies, with the 8-bit value, which party should 
  35.          handle output linefeeds and what their disposition should be.  The 
  36.          code for DS is 1.
  37.     IAC SB NAOLFD DR <8-bit value> IAC SE
  38.          The data receiver specifies, with the 8-bit value, which party
  39.          should handle output linefeeds and what their disposition should
  40.          be.  The code for DR is 0.
  41.  
  42. 3. Default
  43.    DON'T NAOLFD/WON'T NAOLFD.
  44.       In the default absence of negotiations concerning which party, data
  45.       under or data receiver, is handling output linefeed considerations,
  46.       neither party is required nor prohibited from handling linefeeds; but
  47.       it is appropriate if at least the data receiver handles them, albeit
  48.       primitively.
  49.  
  50. 4. Motivation for the Option
  51.    Please refer to section 4 of the NAOL and of the NAOLFD Telnet option 
  52.    descriptions.
  53.  
  54. 5. Description of the Option
  55.    The data sender and the data receiver use the 8-bit value along with DS
  56.    and DR SB commands as follows:
  57.  
  58.       8-bit value         Meaning
  59.  
  60.       0            Command sender suggests that he alone will handle  
  61.                    linefeeds, for the connection.                     
  62.       1 to 250     Command sender suggests that the other party alone 
  63.                    should handle linefeeds, but suggests that a delay 
  64.                    of the indicated value be used.  The value is the   
  65.                    number of character-times to wait or number of     
  66.                    NULs to insert in the data stream before sending   
  67.                    the next data character.  (See qualifications, below.)
  68.       251          Not allowed, in order to be compatible with        
  69.                    related Telnet options.                            
  70.       252          Command sender suggests that the other party alone 
  71.                    handle linefeeds, but suggests that they be discarded.
  72.       253          Command sender suggests that the other party alone 
  73.                    should handle linefeeds, but suggests that
  74.                    linefeeds be simulated.                            
  75.       254          Command sender suggests that the other party alone 
  76.                    should handle output linefeeds but suggests        
  77.                    waiting for a character to be transmitted (on the  
  78.                    other simplex connection) before sending more      
  79.                    data.  (See qualifications, below.) Note that, due  
  80.                    to the assynchrony of the two simplex connections, 
  81.                    phase problems can occur with this option.         
  82.       255          Command sender suggests that the other party alone 
  83.                    should handle output linefeeds and suggests        
  84.                    nothing about how it should be done.               
  85.  
  86.    The guiding rules are that: 
  87.  
  88.       1) if neither data receiver nor data sender wants to handle output 
  89.       linefeeds, the data receiver must do it, and
  90.       2) if both data receiver and data sender want to handle output linefeed 
  91.       disposition, the data sender gets to do it. 
  92.  
  93.    The reasoning for the former rule is that if neither wants to do it, then
  94.    the default in the NAOLFD option dominates.  If both want to do it, the
  95.    sender, who is presumed to have special knowledge about the data, should
  96.    be allowed to do it, taking into account any suggestions the receiver may
  97.    make.  Simulation is defined as the replacement of the linefeed character
  98.    by new-line (see following) and enough blanks to move the print head (or
  99.    line pointer) to the same lateral position it occupied just prior to
  100.    receiving the linefeed.  To avoid infinite recursion, such simulation is
  101.    allowed only for linefeed characters that are not immediately preceded by
  102.    carriage-returns (that is, part of a Telnet new-line combination).  It is
  103.    assumed that linefeed simulation will be necessary for printers that do
  104.    not have a separate linefeed (like the IBM 2741); in this case,
  105.    end-of-line character padding can be specified through NAOCRD.  Any
  106.    padding (0 < <8-bit-value> < 251) of linefeed characters is to be done
  107.    for ALL linefeed characters.
  108.  
  109.    NOTE: Delays, controlled by the data sender, must consist of NUL
  110.    characters inserted immediately after the character.  This is necessary
  111.    due to the assynchrony of network transmissions.  Additionally, due to
  112.    the presence of the Telnet end-of-line convention, it may be necessary to
  113.    add carriage-return padding or delay after the associated linefeed (see
  114.    NAOCRD Telnet option).  As with all option negotiations, neither party
  115.    should suggest a state already in effect except to refuse to negotiate;
  116.    changes should be acknowledged; and once refused, an option should not be
  117.    resuggested until "something changes" (e.g., another process starts).  At
  118.    any time, either party can disable further negotiation by giving the
  119.    appropriate WON'T NAOLFD or DON'T NAOLFD command.
  120.