home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tcp30tkt.zip / PGMG1.ZIP / INCLUDE / FTPAPI.H next >
Text File  |  1995-12-04  |  3KB  |  70 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. void _System ftplogoff(void);
  45. int _System ftpget(char *, char *, char *, char *, char *, char *, char *, int);
  46. int _System ftpput(char *, char *, char *, char *, char *, char *, int);
  47. int _System ftpappend(char *, char *, char *, char *, char *, char *, int);
  48. int _System ftpputunique(char *, char *, char *, char *, char *, char *, int);
  49. int _System ftpcd(char *, char *, char *, char *, char *);
  50. int _System ftpmkd(char *, char *, char *, char *, char *);
  51. int _System ftprmd(char *, char *, char *, char *, char *);
  52. int _System ftpdelete(char *, char *, char *, char *, char *);
  53. int _System ftprename(char *, char *, char *, char *, char *, char *);
  54. int _System ftpls(char *, char *, char *, char *, char *, char *);
  55. int _System ftpdir(char *, char *, char *, char *, char *, char *);
  56. int _System ftpproxy(char *, char *, char *, char *, char *, char *, char *, char *, char *, char *, int);
  57. int _System ftpsite(char *, char *, char *, char *, char *);
  58. int _System ftpquote(char *, char *, char *, char *, char *);
  59. int _System ftpping(char *, int, unsigned long *);
  60. int _System ftppwd(char *, char *, char *, char *, char *, int);
  61. int _System ftpsys(char *, char *, char *, char *, char *, int);
  62. int _System ping(unsigned long, int);
  63. int _System ftp_errno(void);
  64. int _System ftpxlate(unsigned long, char *);
  65. int _System ftpver(char *, int);
  66. int _System ftptrcon(char *, int);
  67. int _System ftptrcoff(void);
  68. void _System ftpxferwnd(HWND hwnd);
  69. #endif /* __FTPAPI_32H */
  70.