home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 400-499 / ff473.lzh / CNewsSrc / cnews_src.lzh / man / bencode.man < prev    next >
Text File  |  1991-01-05  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4. BENCODE(1)               USER COMMANDS                 BENCODE(1)
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      bencode, bdecode -  encode  a  binary  file  into  printable
  10.      ASCII; decode it back into binary.
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      bbbbeeeennnnccccooooddddeeee [[[[ssssoooouuuurrrrcccceeee]]]]
  14.      bbbbddddeeeeccccooooddddeeee [[[[ssssoooouuuurrrrcccceeee]]]]
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      _B_e_n_c_o_d_e is used to a encode a  binary  file  into  printable
  18.      ASCII,  and  _b_d_e_c_o_d_e  is used to decode an encoded file back
  19.      into binary.  These functions are typically used to  package
  20.      a binary file for mailing.
  21.  
  22.      _B_e_n_c_o_d_e takes the named source file (the default is standard
  23.      input)  and produces an encoded version on the standard out-
  24.      put.  The encoding uses only the ASCII  characters  ``A''  -
  25.      ``Z'',  ``a'' - ``z'', ``0'' - ``9'', ``+'', and ``-''.  The
  26.      ASCII characters blank, newline, and ``/''  also  appear  in
  27.      the  encoded  file,  but do not represent encoded bits.  The
  28.      encoded file is terminated with  a  byte  count  and  cyclic
  29.      redundancy check for detecting corrupted files.
  30.  
  31.      _B_d_e_c_o_d_e reads a file encoded  by  bencode  (the  default  is
  32.      standard  input),  strips off any leading and trailing lines
  33.      added by mailers, and writes the decoded version to standard
  34.      output.
  35.  
  36.      These functions are similar to _u_u_e_n_c_o_d_e  and  _u_u_d_e_c_o_d_e,  but
  37.      are  more  robust  because of the CRC check and because they
  38.      don't send characters like ``^'' and ``\'', which are likely
  39.      to  get  mangled if the file should happen to pass through a
  40.      non-ASCII machine.
  41.  
  42. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  43.      uuencode(1)
  44.  
  45. AAAAUUUUTTTTHHHHOOOORRRRSSSS
  46.      Ken Lalonde and Reg Quinton
  47.  
  48. BBBBUUUUGGGGSSSS
  49.      The file is expanded by 35% (3 bytes become 4  plus  control
  50.      information) causing it to take longer to transmit.
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sun Microsystems   Last change: 9 January 1988                  1
  64.  
  65.  
  66.  
  67.