home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / arpa / h / ftp next >
Encoding:
Text File  |  1995-01-11  |  2.3 KB  |  84 lines

  1. /*
  2.  * $Header: /ax/networking:include/arpa/ftp.h:networking  1.1  $
  3.  * $Source: /ax/networking:include/arpa/ftp.h: $
  4.  *
  5.  * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
  6.  *
  7.  * $Log:    ftp.h,v $
  8.  * Revision 1.1  95/01/11  10:14:18  kwelton
  9.  * Initial revision
  10.  * 
  11.  * Revision 1.3  88/06/19  15:19:58  beta
  12.  * Acorn Unix initial beta version
  13.  * 
  14.  */
  15. /*
  16.  * Copyright (c) 1983 Regents of the University of California.
  17.  * All rights reserved.  The Berkeley software License Agreement
  18.  * specifies the terms and conditions for redistribution.
  19.  *
  20.  *      @(#)ftp.h       5.2 (Berkeley) 5/30/85
  21.  */
  22.  
  23. /*
  24.  * Definitions for FTP
  25.  * See RFC-765
  26.  */
  27.  
  28. /*
  29.  * Reply codes.
  30.  */
  31. #define PRELIM          1       /* positive preliminary */
  32. #define COMPLETE        2       /* positive completion */
  33. #define CONTINUE        3       /* positive intermediate */
  34. #define TRANSIENT       4       /* transient negative completion */
  35. #define ERROR           5       /* permanent negative completion */
  36.  
  37. /*
  38.  * Type codes
  39.  */
  40. #define TYPE_A          1       /* ASCII */
  41. #define TYPE_E          2       /* EBCDIC */
  42. #define TYPE_I          3       /* image */
  43. #define TYPE_L          4       /* local byte size */
  44.  
  45. /*
  46.  * Form codes
  47.  */
  48. #define FORM_N          1       /* non-print */
  49. #define FORM_T          2       /* telnet format effectors */
  50. #define FORM_C          3       /* carriage control (ASA) */
  51.  
  52. /*
  53.  * Structure codes
  54.  */
  55. #define STRU_F          1       /* file (no record structure) */
  56. #define STRU_R          2       /* record structure */
  57. #define STRU_P          3       /* page structure */
  58.  
  59. /*
  60.  * Mode types
  61.  */
  62. #define MODE_S          1       /* stream */
  63. #define MODE_B          2       /* block */
  64. #define MODE_C          3       /* compressed */
  65.  
  66. /*
  67.  * Record Tokens
  68.  */
  69. #define REC_ESC         '\377'  /* Record-mode Escape */
  70. #define REC_EOR         '\001'  /* Record-mode End-of-Record */
  71. #define REC_EOF         '\002'  /* Record-mode End-of-File */
  72.  
  73. /*
  74.  * Block Header
  75.  */
  76. #define BLK_EOR         0x80    /* Block is End-of-Record */
  77. #define BLK_EOF         0x40    /* Block is End-of-File */
  78. #define BLK_ERRORS      0x20    /* Block is suspected of containing errors */
  79. #define BLK_RESTART     0x10    /* Block is Restart Marker */
  80.  
  81. #define BLK_BYTECOUNT   2       /* Bytes in this block */
  82.  
  83. /* EOF ftp.h */
  84.