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

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