home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / slfinsta.zip / include / ftpapi.h < prev    next >
C/C++ Source or Header  |  2000-03-26  |  3KB  |  84 lines

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