home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / header45.zip / ftpapi.h < prev    next >
Text File  |  1999-05-11  |  4KB  |  84 lines

  1. #ifndef __FTPAPI_32H
  2. #define __FTPAPI_32H
  3.  
  4. #define INCL_WINMESSAGEMGR
  5. #include <os2.h>
  6.  
  7. /* window message id for post xfer updates */
  8. #define WM_FTPAPI_XFER_UPDATE    WM_USER + 1000
  9.  
  10. #define T_ASCII      1
  11. #define T_EBCDIC     2
  12. #define T_BINARY     3
  13.  
  14. /* command/reply trace file modes */
  15. #define M_OVERLAY    1
  16. #define M_APPEND     2
  17.  
  18. /* command/reply tracing error codes */
  19. #define TRCMODE      1     /* invalid trace file open mode */
  20. #define TRCOPEN      2     /* unable to open trace file */
  21.  
  22. extern int ftperrno;
  23. #define FTPSERVICE    1    /* ftp: ftp/tcp: unknown service */
  24. #define FTPHOST       2    /* unknown host */
  25. #define FTPSOCKET     3    /* unable to obtain socket */
  26. #define FTPCONNECT    4    /* unable to connect to server */
  27. #define FTPLOGIN      5    /* login failed */
  28. #define FTPABORT      6    /* transfer aborted */
  29. #define FTPLOCALFILE  7    /* problem openning local file */
  30. #define FTPDATACONN   8    /* problem initializing data connection */
  31. #define FTPCOMMAND    9    /* command failed */
  32. #define FTPPROXYTHIRD 10   /* proxy server does not support third party transfers */
  33. #define FTPNOPRIMARY  11   /* No primary connection for proxy transfer */
  34. #define FTPNOXLATETBL 12   /* No code page translation table was loded */
  35.  
  36. /* ping error codes */
  37. #define PINGREPLY     -1   /* host does not reply */
  38. #define PINGSOCKET    -3   /* unable to obtain socket */
  39. #define PINGPROTO     -4   /* unknown protcol ICMP */
  40. #define PINGSEND      -5   /* send failed */
  41. #define PINGRECV      -6   /* recv failed */
  42. #define PINGHOST      -7   /* can't resolve the host name */
  43.  
  44. /* Restart Specific */
  45. #define REST_GET 1
  46. #define REST_PUT 2
  47.  
  48. void _System ftplogoff(void);
  49. int _System ftpget(char *, char *, char *, char *, char *, char *, char *, int);
  50. int _System ftpput(char *, char *, char *, char *, char *, char *, int);
  51. int _System ftpappend(char *, char *, char *, char *, char *, char *, int);
  52. int _System ftpputunique(char *, char *, char *, char *, char *, char *, int);
  53. int _System ftpcd(char *, char *, char *, char *, char *);
  54. int _System ftpmkd(char *, char *, char *, char *, char *);
  55. int _System ftprmd(char *, char *, char *, char *, char *);
  56. int _System ftpdelete(char *, char *, char *, char *, char *);
  57. int _System ftprename(char *, char *, char *, char *, char *, char *);
  58. int _System ftpls(char *, char *, char *, char *, char *, char *);
  59. int _System ftpdir(char *, char *, char *, char *, char *, char *);
  60. int _System ftpproxy(char *, char *, char *, char *, char *, char *, char *, char *, char *, char *, int);
  61. int _System ftpsite(char *, char *, char *, char *, char *);
  62. int _System ftpquote(char *, char *, char *, char *, char *);
  63. int _System ftpping(char *, int, unsigned long *);
  64. int _System ftppwd(char *, char *, char *, char *, char *, int);
  65. int _System ftpsys(char *, char *, char *, char *, char *, int);
  66. int _System ping(unsigned long, int);
  67. int _System ftp_errno(void);
  68. int _System ftpxlate(unsigned long, char *);
  69. int _System ftpver(char *, int);
  70. int _System ftptrcon(char *, int);
  71. int _System ftptrcoff(void);
  72. void _System ftpxferwnd(HWND hwnd);
  73. BOOL _System keep_file_date (char*, char*); // keepdate
  74. //RAKS
  75. long _System ftprestart(char *, char *, char *, char *, char *, char *, char *, int, int);
  76. long _System ftpremsize(char *, char *, char *, char *, char *, char *, char *, int);
  77. //RAKS
  78. #ifdef DBCS
  79. void _System ftpsetconvertmode(int code);
  80. void _System ftpsetencodemode(int code);
  81. void _System ftpsetdecodemode(int code);
  82. #endif
  83. #endif /* __FTPAPI_32H */
  84.