home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warphead.zip / H / FTPAPI.H < prev    next >
Text File  |  1997-09-15  |  3KB  |  80 lines

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