AFtpApi.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:31k
源码类别:

模拟服务器

开发平台:

C/C++

  1. /*
  2.  * NOTE:
  3.  * The appropriate system value must be defined for your platform.
  4.  * The following system values are supported:
  5.  *     CM_OS2
  6.  *     CM_DOS
  7.  *     CM_AIX
  8.  *     CM_MVS
  9.  *     CM_VM
  10.  *     CM_OS400
  11.  *     CM_WINNT
  12.  *
  13.  * This is necessary for the proper setting of
  14.  * AFTP_ENTRY and AFTP_PTR below.
  15.  */
  16. /*
  17.  * This file is organized as follows:
  18.  *  - product specific preprocessor directives that must be before all
  19.  *    other declarations
  20.  *  - AFTP type definitions
  21.  *  - AFTP constants definitions
  22.  *  - AFTP function long to short name mapping
  23.  *  - AFTP function prototypes
  24.  */
  25. #ifndef _aftpapi_h
  26. #define _aftpapi_h
  27. #if defined (CM_WINNT)                                                  
  28.                                                                         
  29. #define WINSNA                                                          
  30. #define AFTP_ENTRY extern void WINAPI                                   
  31. #define AFTP_PTR *                                                      
  32.                                                                         
  33. #elif   defined( CM_DOS ) || defined( CM_OS2 )
  34. #if   !defined(__32BIT__)
  35. #     define AFTP_ENTRY extern void pascal far _loadds
  36. #     define AFTP_PTR far *
  37. #else
  38. #     define AFTP_ENTRY extern void _Far16 _Pascal
  39. #     define AFTP_PTR * _Seg16
  40. #endif
  41. #elif defined( CM_MVS ) || defined( CM_OS400 ) || 
  42.       defined( CM_VM ) || defined(CM_AIX)
  43. #     define AFTP_ENTRY extern void
  44. #     define AFTP_PTR *
  45. #endif
  46. /**********************************************************************
  47.  * AFTP Type Definitions
  48.  **********************************************************************/
  49. typedef unsigned char AFTP_HANDLE_TYPE[8];
  50. typedef unsigned long AFTP_ALLOCATION_SIZE_TYPE;
  51. typedef unsigned long AFTP_BLOCK_SIZE_TYPE;
  52. typedef unsigned long AFTP_BOOLEAN_TYPE;
  53. #if defined (CM_WINNT)                                                  
  54. typedef signed long AFTP_DATA_TYPE_TYPE;                                
  55. #else                                                                   
  56. typedef unsigned long AFTP_DATA_TYPE_TYPE;
  57. #endif                                                                  
  58. typedef unsigned long AFTP_DATE_MODE_TYPE;
  59. typedef unsigned long AFTP_DETAIL_LEVEL_TYPE;
  60. typedef unsigned long AFTP_FILE_MODE_TYPE;
  61. typedef unsigned long AFTP_FILE_SIZE_TYPE;
  62. typedef unsigned long AFTP_FILE_TIME_TYPE;
  63. typedef unsigned long AFTP_FILE_TYPE_TYPE;
  64. typedef unsigned long AFTP_INFO_LEVEL_TYPE;
  65. typedef unsigned long AFTP_LENGTH_TYPE;
  66. typedef unsigned long AFTP_RETURN_CODE_TYPE;
  67. typedef unsigned long AFTP_RECORD_FORMAT_TYPE;
  68. typedef unsigned long AFTP_RECORD_LENGTH_TYPE;
  69. typedef unsigned long AFTP_SECURITY_TYPE;
  70. typedef unsigned long AFTP_TRACE_LEVEL_TYPE;
  71. typedef unsigned long AFTP_VERSION_TYPE;
  72. typedef unsigned long AFTP_WRITE_MODE_TYPE;
  73. /**********************************************************************
  74.  *  AFTP Constant Definitions
  75.  **********************************************************************/
  76. /* Supported Data Transfer Types */
  77. #define AFTP_ASCII             ((AFTP_DATA_TYPE_TYPE)0)
  78. #define AFTP_BINARY            ((AFTP_DATA_TYPE_TYPE)1)
  79. #define AFTP_EBCDIC            ((AFTP_DATA_TYPE_TYPE)2)
  80. #define AFTP_DEFAULT_DATA_TYPE  ((AFTP_DATA_TYPE_TYPE)3)               /*W32*/
  81. /* Supported File Date Modes */
  82. #define AFTP_OLDDATE          ((AFTP_DATE_MODE_TYPE)0)
  83. #define AFTP_NEWDATE          ((AFTP_DATE_MODE_TYPE)1)
  84. /* Format Error Detail Levels */
  85. #define AFTP_DETAIL_RC      ((AFTP_DETAIL_LEVEL_TYPE)1)
  86. #define AFTP_DETAIL_SECOND  ((AFTP_DETAIL_LEVEL_TYPE)2)
  87. #define AFTP_DETAIL_LOG     ((AFTP_DETAIL_LEVEL_TYPE)4)
  88. #define AFTP_DETAIL_INFO    ((AFTP_DETAIL_LEVEL_TYPE)8)
  89. #define AFTP_DETAIL_ALL     ((AFTP_DETAIL_LEVEL_TYPE)15)
  90. /* File Types, Requested and Returned */
  91. #define AFTP_FILE             ((AFTP_FILE_TYPE_TYPE)1)
  92. #define AFTP_DIRECTORY        ((AFTP_FILE_TYPE_TYPE)2)
  93. #define AFTP_ALL_FILES        ((AFTP_FILE_TYPE_TYPE) 
  94.                                   (AFTP_FILE | AFTP_DIRECTORY))
  95. /* Info Level for aftp_dir_open() */
  96. #define AFTP_NATIVE_FILENAMES   ((AFTP_INFO_LEVEL_TYPE)0)
  97. #define AFTP_NATIVE_ATTRIBUTES  ((AFTP_INFO_LEVEL_TYPE)1)
  98. /* Return Codes */
  99. #define AFTP_RC_OK                     ((AFTP_RETURN_CODE_TYPE)0)
  100. #define AFTP_RC_COMM_FAIL_NO_RETRY     ((AFTP_RETURN_CODE_TYPE)1)
  101. #define AFTP_RC_COMM_FAIL_RETRY        ((AFTP_RETURN_CODE_TYPE)2)
  102. #define AFTP_RC_COMM_CONFIG_LOCAL      ((AFTP_RETURN_CODE_TYPE)3)
  103. #define AFTP_RC_COMM_CONFIG_REMOTE     ((AFTP_RETURN_CODE_TYPE)4)
  104. #define AFTP_RC_SECURITY_NOT_VALID     ((AFTP_RETURN_CODE_TYPE)5)
  105. #define AFTP_RC_FAIL_INPUT_ERROR       ((AFTP_RETURN_CODE_TYPE)6)
  106. #define AFTP_RC_FAIL_RETRY             ((AFTP_RETURN_CODE_TYPE)7)
  107. #define AFTP_RC_FAIL_NO_RETRY          ((AFTP_RETURN_CODE_TYPE)8)
  108. #define AFTP_RC_FAIL_FATAL             ((AFTP_RETURN_CODE_TYPE)9)
  109. #define AFTP_RC_PROGRAM_INTERNAL_ERROR ((AFTP_RETURN_CODE_TYPE)10)
  110. #define AFTP_RC_PARAMETER_CHECK        ((AFTP_RETURN_CODE_TYPE)11)
  111. #define AFTP_RC_HANDLE_NOT_VALID       ((AFTP_RETURN_CODE_TYPE)12)
  112. #define AFTP_RC_STATE_CHECK            ((AFTP_RETURN_CODE_TYPE)13)
  113. #define AFTP_RC_BUFFER_TOO_SMALL       ((AFTP_RETURN_CODE_TYPE)14)
  114. /* Supported Record Formats */
  115. #define AFTP_DEFAULT_RECORD_FORMAT ((AFTP_RECORD_FORMAT_TYPE)0)
  116. #define AFTP_V                     ((AFTP_RECORD_FORMAT_TYPE)1)
  117. #define AFTP_VA                    ((AFTP_RECORD_FORMAT_TYPE)2)
  118. #define AFTP_VB                    ((AFTP_RECORD_FORMAT_TYPE)3)
  119. #define AFTP_VM                    ((AFTP_RECORD_FORMAT_TYPE)4)
  120. #define AFTP_VS                    ((AFTP_RECORD_FORMAT_TYPE)5)
  121. #define AFTP_VBA                   ((AFTP_RECORD_FORMAT_TYPE)6)
  122. #define AFTP_VBM                   ((AFTP_RECORD_FORMAT_TYPE)7)
  123. #define AFTP_VBS                   ((AFTP_RECORD_FORMAT_TYPE)8)
  124. #define AFTP_VSA                   ((AFTP_RECORD_FORMAT_TYPE)9)
  125. #define AFTP_VSM                   ((AFTP_RECORD_FORMAT_TYPE)10)
  126. #define AFTP_VBSA                  ((AFTP_RECORD_FORMAT_TYPE)11)
  127. #define AFTP_VBSM                  ((AFTP_RECORD_FORMAT_TYPE)12)
  128. #define AFTP_F                     ((AFTP_RECORD_FORMAT_TYPE)13)
  129. #define AFTP_FA                    ((AFTP_RECORD_FORMAT_TYPE)14)
  130. #define AFTP_FB                    ((AFTP_RECORD_FORMAT_TYPE)15)
  131. #define AFTP_FM                    ((AFTP_RECORD_FORMAT_TYPE)16)
  132. #define AFTP_FBA                   ((AFTP_RECORD_FORMAT_TYPE)17)
  133. #define AFTP_FBM                   ((AFTP_RECORD_FORMAT_TYPE)18)
  134. #define AFTP_FBS                   ((AFTP_RECORD_FORMAT_TYPE)19)
  135. #define AFTP_FBSM                  ((AFTP_RECORD_FORMAT_TYPE)20)
  136. #define AFTP_FBSA                  ((AFTP_RECORD_FORMAT_TYPE)21)
  137. #define AFTP_U                     ((AFTP_RECORD_FORMAT_TYPE)22)
  138. #define AFTP_UA                    ((AFTP_RECORD_FORMAT_TYPE)23)
  139. #define AFTP_UM                    ((AFTP_RECORD_FORMAT_TYPE)24)
  140. /* Conversation Security Type Values */
  141. #define AFTP_SECURITY_NONE     ((AFTP_SECURITY_TYPE)0)
  142. #define AFTP_SECURITY_SAME     ((AFTP_SECURITY_TYPE)1)
  143. #define AFTP_SECURITY_PROGRAM  ((AFTP_SECURITY_TYPE)2)
  144. /* Trace Levels */
  145. #define AFTP_LVL_NO_TRACING            ((AFTP_TRACE_LEVEL_TYPE)   (0))
  146. #define AFTP_LVL_FAILURES              ((AFTP_TRACE_LEVEL_TYPE)  (10))
  147. #define AFTP_LVL_API                   ((AFTP_TRACE_LEVEL_TYPE)  (20))
  148. #define AFTP_LVL_MODULE                ((AFTP_TRACE_LEVEL_TYPE)  (30))
  149. #define AFTP_LVL_FUNCTION              ((AFTP_TRACE_LEVEL_TYPE)  (40))
  150. #define AFTP_LVL_IO_OPEN_CLOSE         ((AFTP_TRACE_LEVEL_TYPE)  (50))
  151. #define AFTP_LVL_LINE_FLOW             ((AFTP_TRACE_LEVEL_TYPE) (100))
  152. #define AFTP_LVL_IO_READ_WRITE         ((AFTP_TRACE_LEVEL_TYPE) (110))
  153. #define AFTP_LVL_STATUS_DUMP           ((AFTP_TRACE_LEVEL_TYPE) (120))
  154. #define AFTP_LVL_VARIABLE              ((AFTP_TRACE_LEVEL_TYPE) (130))
  155. #define AFTP_LVL_LOCATION              ((AFTP_TRACE_LEVEL_TYPE) (140))
  156. #define AFTP_LVL_DATA_TRACE            ((AFTP_TRACE_LEVEL_TYPE) (170))
  157. #define AFTP_LVL_LOOPLOC               ((AFTP_TRACE_LEVEL_TYPE) (200))
  158. #define AFTP_MAX_TRACE_LVL              AFTP_LVL_LOOPLOC
  159. /* Supported File Write Modes */
  160. #define AFTP_REPLACE          ((AFTP_WRITE_MODE_TYPE)0)
  161. #define AFTP_APPEND           ((AFTP_WRITE_MODE_TYPE)1)
  162. #define AFTP_NOREPLACE        ((AFTP_WRITE_MODE_TYPE)2)
  163. #define AFTP_STOREUNIQUE      ((AFTP_WRITE_MODE_TYPE)3)
  164. /* AFTP buffer lengths */
  165. #define AFTP_FILE_NAME_SIZE     ((AFTP_LENGTH_TYPE)512)
  166. #define AFTP_FQLU_NAME_SIZE     ((AFTP_LENGTH_TYPE)18)
  167. #define AFTP_MODE_NAME_SIZE     ((AFTP_LENGTH_TYPE)9)
  168. #define AFTP_PASSWORD_SIZE      ((AFTP_LENGTH_TYPE)11)
  169. #define AFTP_TP_NAME_SIZE       ((AFTP_LENGTH_TYPE)65)
  170. #define AFTP_USERID_SIZE        ((AFTP_LENGTH_TYPE)11)
  171. #define AFTP_MESSAGE_SIZE       ((AFTP_LENGTH_TYPE)512)
  172. #define AFTP_DATA_TYPE_SIZE     ((AFTP_LENGTH_TYPE)7)
  173. #define AFTP_DATE_MODE_SIZE     ((AFTP_LENGTH_TYPE)4)
  174. #define AFTP_RECORD_FORMAT_SIZE ((AFTP_LENGTH_TYPE)8)
  175. #define AFTP_WRITE_MODE_SIZE    ((AFTP_LENGTH_TYPE)12)
  176. #define AFTP_INI_MESSAGE_SIZE   ((AFTP_LENGTH_TYPE)1024)
  177. #define AFTP_SYSTEM_INFO_SIZE   ((AFTP_LENGTH_TYPE)512)
  178. /**********************************************************************
  179.  *  AFTP Long to Short Function Name Mapping
  180.  **********************************************************************/
  181. #define aftp_change_dir                 FTCD
  182. #define aftp_close                      FTCLOSE
  183. #define aftp_connect                    FTCONN
  184. #define aftp_create                     FTCREATE
  185. #define aftp_create_dir                 FTCRTDIR
  186. #define aftp_delete                     FTDEL
  187. #define aftp_destroy                    FTDESTRY
  188. #define aftp_dir_close                  FTDIRCLS
  189. #define aftp_dir_open                   FTDIROPN
  190. #define aftp_dir_read                   FTDIRRD
  191. #define aftp_extract_allocation_size    FTEAS
  192. #define aftp_extract_block_size         FTEBS
  193. #define aftp_extract_date_mode          FTEDM
  194. #define aftp_extract_destination        FTEDST
  195. #define aftp_extract_data_type          FTEDT
  196. #define aftp_extract_mode_name          FTEMN
  197. #define aftp_extract_partner_LU_name    FTEPLU
  198. #define aftp_extract_password           FTEPW
  199. #define aftp_extract_record_format      FTERF
  200. #define aftp_extract_record_length      FTERL
  201. #define aftp_extract_security_type      FTEST
  202. #define aftp_extract_tp_name            FTETPN
  203. #define aftp_extract_trace_level        FTETL
  204. #define aftp_extract_userid             FTEUI
  205. #define aftp_extract_write_mode         FTEWM
  206. #define aftp_format_error               FTFE
  207. #define aftp_get_date_mode_string       FTGDMS
  208. #define aftp_get_data_type_string       FTGDTS
  209. #define aftp_get_record_format_string   FTGRFS
  210. #define aftp_get_write_mode_string      FTGWMS
  211. #define aftp_local_change_dir           FTLCD
  212. #define aftp_local_dir_close            FTLDC
  213. #define aftp_local_dir_open             FTLDO
  214. #define aftp_local_dir_read             FTLDR
  215. #define aftp_load_ini_file              FTLIF
  216. #define aftp_local_query_current_dir    FTLQCD
  217. #define aftp_query_bytes_transferred    FTQBT
  218. #define aftp_query_current_dir          FTQCD
  219. #define aftp_query_local_system_info    FTQLSI
  220. #define aftp_query_local_version        FTQLV
  221. #define aftp_query_system_info          FTQSYS
  222. #define aftp_remove_dir                 FTRD
  223. #define aftp_receive_file               FTRECV
  224. #define aftp_rename                     FTREN
  225. #define aftp_set_allocation_size        FTSAS
  226. #define aftp_set_block_size             FTSBS
  227. #define aftp_set_destination            FTSDEST
  228. #define aftp_set_date_mode              FTSDM
  229. #define aftp_set_data_type              FTSDT
  230. #define aftp_send_file                  FTSEND
  231. #define aftp_set_mode_name              FTSMN
  232. #define aftp_set_password               FTSP
  233. #define aftp_set_record_format          FTSRF
  234. #define aftp_set_record_length          FTSRL
  235. #define aftp_set_security_type          FTSST
  236. #define aftp_set_trace_filename         FTSTF
  237. #define aftp_set_trace_level            FTSTL
  238. #define aftp_set_tp_name                FTSTP
  239. #define aftp_set_userid                 FTSU
  240. #define aftp_set_write_mode             FTSWM
  241. #define ftcd                            FTCD
  242. #define ftclose                         FTCLOSE
  243. #define ftconn                          FTCONN
  244. #define ftcreate                        FTCREATE
  245. #define ftcrtdir                        FTCRTDIR
  246. #define ftdel                           FTDEL
  247. #define ftdestry                        FTDESTRY
  248. #define ftdircls                        FTDIRCLS
  249. #define ftdiropn                        FTDIROPN
  250. #define ftdirrd                         FTDIRRD
  251. #define fteas                           FTEAS
  252. #define ftebs                           FTEBS
  253. #define ftedm                           FTEDM
  254. #define ftedst                          FTEDST
  255. #define ftedt                           FTEDT
  256. #define ftemn                           FTEMN
  257. #define fteplu                          FTEPLU
  258. #define ftepw                           FTEPW
  259. #define fterf                           FTERF
  260. #define fterl                           FTERL
  261. #define ftest                           FTEST
  262. #define ftetpn                          FTETPN
  263. #define fteui                           FTEUI
  264. #define ftewm                           FTEWM
  265. #define ftfe                            FTFE
  266. #define ftgdms                          FTGDMS
  267. #define ftgdts                          FTGDTS
  268. #define ftgrfs                          FTGRFS
  269. #define ftgwms                          FTGWMS
  270. #define ftlcd                           FTLCD
  271. #define ftldc                           FTLDC
  272. #define ftldo                           FTLDO
  273. #define ftldr                           FTLDR
  274. #define ftlif                           FTLIF
  275. #define ftlqcd                          FTLQCD
  276. #define ftqbt                           FTQBT
  277. #define ftqcd                           FTQCD
  278. #define ftqlsi                          FTQLSI
  279. #define ftqlv                           FTQLV
  280. #define ftqsys                          FTQSYS
  281. #define ftrd                            FTRD
  282. #define ftrecv                          FTRECV
  283. #define ftren                           FTREN
  284. #define ftsas                           FTSAS
  285. #define ftsbs                           FTSBS
  286. #define ftsdest                         FTSDEST
  287. #define ftsdm                           FTSDM
  288. #define ftsdt                           FTSDT
  289. #define ftsend                          FTSEND
  290. #define ftstl                           FTSTL
  291. #define ftstf                           FTSTF
  292. #define ftetl                           FTETL
  293. #define ftsmn                           FTSMN
  294. #define ftsp                            FTSP
  295. #define ftsrf                           FTSRF
  296. #define ftsrl                           FTSRL
  297. #define ftsst                           FTSST
  298. #define ftstp                           FTSTP
  299. #define ftsu                            FTSU
  300. #define ftswm                           FTSWM
  301. /**********************************************************************
  302.  *  AFTP Function Prototypes
  303.  **********************************************************************/
  304. #ifdef __cplusplus
  305. extern "C" {
  306. #endif /* __cplusplus */
  307. AFTP_ENTRY
  308. aftp_change_dir(
  309.     unsigned char AFTP_PTR                  connection_id,
  310.     unsigned char AFTP_PTR                  directory,
  311.     AFTP_LENGTH_TYPE                        length,
  312.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  313. AFTP_ENTRY
  314. aftp_close(
  315.     unsigned char AFTP_PTR                  connection_id,
  316.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  317. AFTP_ENTRY
  318. aftp_connect(
  319.     unsigned char AFTP_PTR                  connection_id,
  320.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  321. AFTP_ENTRY
  322. aftp_create(
  323.     unsigned char AFTP_PTR                  connection_id,
  324.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  325. AFTP_ENTRY
  326. aftp_create_dir(
  327.     unsigned char AFTP_PTR                  connection_id,
  328.     unsigned char AFTP_PTR                  directory,
  329.     AFTP_LENGTH_TYPE                        length,
  330.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  331. AFTP_ENTRY
  332. aftp_delete(
  333.     unsigned char AFTP_PTR                  connection_id,
  334.     unsigned char AFTP_PTR                  filename,
  335.     AFTP_LENGTH_TYPE                        length,
  336.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  337. AFTP_ENTRY
  338. aftp_destroy(
  339.     unsigned char AFTP_PTR                  connection_id,
  340.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  341. AFTP_ENTRY
  342. aftp_dir_close(
  343.     unsigned char AFTP_PTR                  connection_id,
  344.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  345. AFTP_ENTRY
  346. aftp_dir_open(
  347.     unsigned char AFTP_PTR                  connection_id,
  348.     unsigned char AFTP_PTR                  filespec,
  349.     AFTP_LENGTH_TYPE                        length,
  350.     AFTP_FILE_TYPE_TYPE                     file_type,
  351.     AFTP_INFO_LEVEL_TYPE                    info_level,
  352.     unsigned char AFTP_PTR                  path,
  353.     AFTP_LENGTH_TYPE                        path_buffer_length,
  354.     AFTP_LENGTH_TYPE AFTP_PTR               path_returned_length,
  355.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  356. AFTP_ENTRY
  357. aftp_dir_read(
  358.     unsigned char AFTP_PTR                  connection_id,
  359.     unsigned char AFTP_PTR                  dir_entry,
  360.     AFTP_LENGTH_TYPE                        dir_entry_size,
  361.     AFTP_LENGTH_TYPE AFTP_PTR               returned_length,
  362.     AFTP_BOOLEAN_TYPE AFTP_PTR              no_more_entries,
  363.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  364. AFTP_ENTRY
  365. aftp_extract_allocation_size(
  366.     unsigned char AFTP_PTR                  connection_id,
  367.     AFTP_ALLOCATION_SIZE_TYPE AFTP_PTR      allocation_size,
  368.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  369. AFTP_ENTRY
  370. aftp_extract_block_size(
  371.     unsigned char AFTP_PTR                  connection_id,
  372.     AFTP_BLOCK_SIZE_TYPE AFTP_PTR           block_size,
  373.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  374. AFTP_ENTRY
  375. aftp_extract_data_type(
  376.     unsigned char AFTP_PTR                  connection_id,
  377.     AFTP_DATA_TYPE_TYPE AFTP_PTR            data_type,
  378.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  379. AFTP_ENTRY
  380. aftp_extract_date_mode(
  381.     unsigned char AFTP_PTR                  connection_id,
  382.     AFTP_DATE_MODE_TYPE AFTP_PTR            date_mode,
  383.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  384. AFTP_ENTRY
  385. aftp_extract_destination(
  386.     unsigned char AFTP_PTR                  connection_id,
  387.     unsigned char AFTP_PTR                  destination,
  388.     AFTP_LENGTH_TYPE                        destination_size,
  389.     AFTP_LENGTH_TYPE AFTP_PTR               returned_length,
  390.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  391. AFTP_ENTRY
  392. aftp_extract_mode_name(
  393.     unsigned char AFTP_PTR                  connection_id,
  394.     unsigned char AFTP_PTR                  mode_name,
  395.     AFTP_LENGTH_TYPE                        mode_name_size,
  396.     AFTP_LENGTH_TYPE AFTP_PTR               returned_length,
  397.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  398. AFTP_ENTRY
  399. aftp_extract_partner_LU_name(
  400.     unsigned char AFTP_PTR                  connection_id,
  401.     unsigned char AFTP_PTR                  partner_LU_name,
  402.     AFTP_LENGTH_TYPE                        partner_LU_name_size,
  403.     AFTP_LENGTH_TYPE AFTP_PTR               returned_length,
  404.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  405. AFTP_ENTRY
  406. aftp_extract_password(
  407.     unsigned char AFTP_PTR                  connection_id,
  408.     unsigned char AFTP_PTR                  password,
  409.     AFTP_LENGTH_TYPE                        password_size,
  410.     AFTP_LENGTH_TYPE AFTP_PTR               returned_length,
  411.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  412. AFTP_ENTRY
  413. aftp_extract_record_format(
  414.     unsigned char AFTP_PTR                  connection_id,
  415.     AFTP_RECORD_FORMAT_TYPE AFTP_PTR        record_format,
  416.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  417. AFTP_ENTRY
  418. aftp_extract_record_length(
  419.     unsigned char AFTP_PTR                  connection_id,
  420.     AFTP_RECORD_LENGTH_TYPE AFTP_PTR        record_length,
  421.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  422. AFTP_ENTRY
  423. aftp_extract_security_type(
  424.     unsigned char AFTP_PTR                  connection_id,
  425.     AFTP_SECURITY_TYPE AFTP_PTR             security_type,
  426.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  427. AFTP_ENTRY
  428. aftp_extract_tp_name(
  429.     unsigned char AFTP_PTR                  connection_id,
  430.     unsigned char AFTP_PTR                  tp_name,
  431.     AFTP_LENGTH_TYPE                        tp_name_size,
  432.     AFTP_LENGTH_TYPE AFTP_PTR               returned_length,
  433.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  434. AFTP_ENTRY
  435. aftp_extract_userid(
  436.     unsigned char AFTP_PTR                  connection_id,
  437.     unsigned char AFTP_PTR                  userid,
  438.     AFTP_LENGTH_TYPE                        userid_size,
  439.     AFTP_LENGTH_TYPE AFTP_PTR               length,
  440.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  441. AFTP_ENTRY
  442. aftp_extract_write_mode(
  443.     unsigned char AFTP_PTR                  connection_id,
  444.     AFTP_WRITE_MODE_TYPE AFTP_PTR           write_mode,
  445.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  446. AFTP_ENTRY
  447. aftp_get_data_type_string(
  448.     AFTP_DATA_TYPE_TYPE                     data_type,
  449.     unsigned char AFTP_PTR                  data_type_string,
  450.     AFTP_LENGTH_TYPE                        data_type_size,
  451.     AFTP_LENGTH_TYPE AFTP_PTR               returned_length,
  452.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  453. AFTP_ENTRY
  454. aftp_get_date_mode_string(
  455.     AFTP_DATE_MODE_TYPE                     date_mode,
  456.     unsigned char AFTP_PTR                  date_mode_string,
  457.     AFTP_LENGTH_TYPE                        date_mode_size,
  458.     AFTP_LENGTH_TYPE AFTP_PTR               returned_length,
  459.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  460. AFTP_ENTRY
  461. aftp_get_record_format_string(
  462.     AFTP_RECORD_FORMAT_TYPE                 record_format,
  463.     unsigned char AFTP_PTR                  record_format_string,
  464.     AFTP_LENGTH_TYPE                        record_format_size,
  465.     AFTP_LENGTH_TYPE AFTP_PTR               returned_length,
  466.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  467. AFTP_ENTRY
  468. aftp_get_write_mode_string(
  469.     AFTP_WRITE_MODE_TYPE                    write_mode,
  470.     unsigned char AFTP_PTR                  write_mode_string,
  471.     AFTP_LENGTH_TYPE                        write_mode_size,
  472.     AFTP_LENGTH_TYPE AFTP_PTR               returned_length,
  473.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  474. AFTP_ENTRY
  475. aftp_load_ini_file(
  476.     unsigned char AFTP_PTR                  filename,
  477.     AFTP_LENGTH_TYPE                        filename_size,
  478.     unsigned char AFTP_PTR                  program_path,
  479.     AFTP_LENGTH_TYPE                        path_size,
  480.     unsigned char AFTP_PTR                  error_string,
  481.     AFTP_LENGTH_TYPE                        error_string_size,
  482.     AFTP_LENGTH_TYPE AFTP_PTR               returned_length,
  483.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  484. AFTP_ENTRY
  485. aftp_local_change_dir(
  486.     unsigned char AFTP_PTR                  connection_id,
  487.     unsigned char AFTP_PTR                  directory,
  488.     AFTP_LENGTH_TYPE                        length,
  489.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  490. AFTP_ENTRY
  491. aftp_local_dir_close(
  492.     unsigned char AFTP_PTR                  connection_id,
  493.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  494. AFTP_ENTRY
  495. aftp_local_dir_open(
  496.     unsigned char AFTP_PTR                  connection_id,
  497.     unsigned char AFTP_PTR                  filespec,
  498.     AFTP_LENGTH_TYPE                        length,
  499.     AFTP_FILE_TYPE_TYPE                     file_type,
  500.     AFTP_INFO_LEVEL_TYPE                    info_level,
  501.     unsigned char AFTP_PTR                  path,
  502.     AFTP_LENGTH_TYPE                        path_buffer_length,
  503.     AFTP_LENGTH_TYPE AFTP_PTR               path_returned_length,
  504.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  505. AFTP_ENTRY
  506. aftp_local_dir_read(
  507.     unsigned char AFTP_PTR                  connection_id,
  508.     unsigned char AFTP_PTR                  dir_entry,
  509.     AFTP_LENGTH_TYPE                        dir_entry_size,
  510.     AFTP_LENGTH_TYPE AFTP_PTR               returned_length,
  511.     AFTP_BOOLEAN_TYPE AFTP_PTR              no_more_entries,
  512.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  513. AFTP_ENTRY
  514. aftp_local_query_current_dir(
  515.     unsigned char AFTP_PTR                  connection_id,
  516.     unsigned char AFTP_PTR                  directory,
  517.     AFTP_LENGTH_TYPE                        directory_size,
  518.     AFTP_LENGTH_TYPE AFTP_PTR               returned_length,
  519.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  520. AFTP_ENTRY
  521. aftp_query_bytes_transferred(
  522.     unsigned char AFTP_PTR                  connection_id,
  523.     AFTP_LENGTH_TYPE AFTP_PTR               bytes_transferred,
  524.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  525. AFTP_ENTRY
  526. aftp_query_current_dir(
  527.     unsigned char AFTP_PTR                  connection_id,
  528.     unsigned char AFTP_PTR                  directory,
  529.     AFTP_LENGTH_TYPE                        directory_size,
  530.     AFTP_LENGTH_TYPE AFTP_PTR               returned_length,
  531.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  532. AFTP_ENTRY
  533. aftp_query_local_version(
  534.     AFTP_VERSION_TYPE AFTP_PTR              major_version,
  535.     AFTP_VERSION_TYPE AFTP_PTR              minor_version,
  536.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  537. AFTP_ENTRY
  538. aftp_query_local_system_info(
  539.     unsigned char AFTP_PTR                  connection_id,
  540.     unsigned char AFTP_PTR                  system_info,
  541.     AFTP_LENGTH_TYPE                        system_info_size,
  542.     AFTP_LENGTH_TYPE AFTP_PTR               returned_length,
  543.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  544. AFTP_ENTRY
  545. aftp_query_system_info(
  546.     unsigned char AFTP_PTR                  connection_id,
  547.     unsigned char AFTP_PTR                  system_info,
  548.     AFTP_LENGTH_TYPE                        system_info_size,
  549.     AFTP_LENGTH_TYPE AFTP_PTR               returned_length,
  550.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  551. AFTP_ENTRY
  552. aftp_receive_file(
  553.     unsigned char AFTP_PTR                  connection_id,
  554.     unsigned char AFTP_PTR                  local_file,
  555.     AFTP_LENGTH_TYPE                        local_file_length,
  556.     unsigned char AFTP_PTR                  remote_file,
  557.     AFTP_LENGTH_TYPE                        remote_file_length,
  558.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  559. AFTP_ENTRY
  560. aftp_remove_dir(
  561.     unsigned char AFTP_PTR                  connection_id,
  562.     unsigned char AFTP_PTR                  directory,
  563.     AFTP_LENGTH_TYPE                        length,
  564.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  565. AFTP_ENTRY
  566. aftp_rename(
  567.     unsigned char AFTP_PTR                  connection_id,
  568.     unsigned char AFTP_PTR                  oldfile,
  569.     AFTP_LENGTH_TYPE                        oldlength,
  570.     unsigned char AFTP_PTR                  newfile,
  571.     AFTP_LENGTH_TYPE                        newlength,
  572.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  573. AFTP_ENTRY
  574. aftp_send_file(
  575.     unsigned char AFTP_PTR                  connection_id,
  576.     unsigned char AFTP_PTR                  local_file,
  577.     AFTP_LENGTH_TYPE                        local_file_length,
  578.     unsigned char AFTP_PTR                  remote_file,
  579.     AFTP_LENGTH_TYPE                        remote_file_length,
  580.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  581. AFTP_ENTRY
  582. aftp_set_allocation_size(
  583.     unsigned char AFTP_PTR                  connection_id,
  584.     AFTP_ALLOCATION_SIZE_TYPE               allocation_size,
  585.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  586. AFTP_ENTRY
  587. aftp_set_block_size(
  588.     unsigned char AFTP_PTR                  connection_id,
  589.     AFTP_BLOCK_SIZE_TYPE                    block_size,
  590.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  591. AFTP_ENTRY
  592. aftp_set_data_type(
  593.     unsigned char AFTP_PTR                  connection_id,
  594.     AFTP_DATA_TYPE_TYPE                     data_type,
  595.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  596. AFTP_ENTRY
  597. aftp_set_date_mode(
  598.     unsigned char AFTP_PTR                  connection_id,
  599.     AFTP_DATE_MODE_TYPE                     date_mode,
  600.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  601. AFTP_ENTRY
  602. aftp_set_destination(
  603.     unsigned char AFTP_PTR                  connection_id,
  604.     unsigned char AFTP_PTR                  destination,
  605.     AFTP_LENGTH_TYPE                        length,
  606.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  607. AFTP_ENTRY
  608. aftp_set_trace_level(
  609.     AFTP_TRACE_LEVEL_TYPE                   trace_level,
  610.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  611. AFTP_ENTRY
  612. aftp_extract_trace_level(
  613.     AFTP_TRACE_LEVEL_TYPE AFTP_PTR          trace_level,
  614.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  615. AFTP_ENTRY
  616. aftp_set_trace_filename(
  617.     unsigned char AFTP_PTR                  filename,
  618.     AFTP_LENGTH_TYPE                        filename_length,
  619.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  620. AFTP_ENTRY
  621. aftp_set_mode_name(
  622.     unsigned char AFTP_PTR                  connection_id,
  623.     unsigned char AFTP_PTR                  mode_name,
  624.     AFTP_LENGTH_TYPE                        length,
  625.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  626. AFTP_ENTRY
  627. aftp_set_password(
  628.     unsigned char AFTP_PTR                  connection_id,
  629.     unsigned char AFTP_PTR                  password,
  630.     AFTP_LENGTH_TYPE                        length,
  631.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  632. AFTP_ENTRY
  633. aftp_set_record_format(
  634.     unsigned char AFTP_PTR                  connection_id,
  635.     AFTP_RECORD_FORMAT_TYPE                 record_format,
  636.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  637. AFTP_ENTRY
  638. aftp_set_record_length(
  639.     unsigned char AFTP_PTR                  connection_id,
  640.     AFTP_RECORD_LENGTH_TYPE                 record_length,
  641.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  642. AFTP_ENTRY
  643. aftp_set_security_type(
  644.     unsigned char AFTP_PTR                  connection_id,
  645.     AFTP_SECURITY_TYPE                      security_type,
  646.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  647. AFTP_ENTRY
  648. aftp_set_tp_name(
  649.     unsigned char AFTP_PTR                  connection_id,
  650.     unsigned char AFTP_PTR                  tp_name,
  651.     AFTP_LENGTH_TYPE                        length,
  652.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  653. AFTP_ENTRY
  654. aftp_set_userid(
  655.     unsigned char AFTP_PTR                  connection_id,
  656.     unsigned char AFTP_PTR                  userid,
  657.     AFTP_LENGTH_TYPE                        length,
  658.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  659. AFTP_ENTRY
  660. aftp_set_write_mode(
  661.     unsigned char AFTP_PTR                  connection_id,
  662.     AFTP_WRITE_MODE_TYPE                    write_mode,
  663.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  664. AFTP_ENTRY
  665. aftp_format_error(
  666.     unsigned char AFTP_PTR                  connection_id,
  667.     AFTP_DETAIL_LEVEL_TYPE                  detail_level,
  668.     unsigned char AFTP_PTR                  error_str,
  669.     AFTP_LENGTH_TYPE                        error_str_size,
  670.     AFTP_LENGTH_TYPE AFTP_PTR               returned_length,
  671.     AFTP_RETURN_CODE_TYPE AFTP_PTR          rc);
  672. #ifdef __cplusplus
  673. }
  674. #endif /* __cplusplus */
  675. #endif