home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 29 Fixes_o / 29-Fixes_o.zip / prgcsd.exe / FTPAPI.H < prev    next >
Text File  |  1992-10-20  |  5KB  |  71 lines

  1. /********************************************************copyrite.xic***/
  2. /*                                                                     */
  3. /*   Licensed Materials - Property of IBM                              */
  4. /*                                                                     */
  5. /*   This product contains "Restricted Materials of IBM":              */
  6. /*      Program Number:   5798RXW                                      */
  7. /*      Program Name:     IBM TCP/IP Version 1.2 for OS/2              */
  8. /*   (C) Copyright IBM Corporation. 1990, 1991.                        */
  9. /*                                                                     */
  10. /*   All rights reserved.                                              */
  11. /*                                                                     */
  12. /*   US Government Users Restricted Rights -                           */
  13. /*   Use, duplication or disclosure restricted by GSA ADP Schedule     */
  14. /*   Contract with IBM Corp.                                           */
  15. /*                                                                     */
  16. /*   See IBM Copyright Instructions.                                   */
  17. /*                                                                     */
  18. /********************************************************copyrite.xic***/
  19. #ifndef __32BIT__
  20. #define _Seg16
  21. #define _Far16
  22. #define _Cdecl
  23. #else
  24. #define ftperrno _ftperrno
  25. #endif
  26. #define T_ASCII      1
  27. #define T_EBCDIC     2
  28. #define T_BINARY     3
  29.  
  30. extern short 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.  
  43. /* ping error codes */
  44. #define PINGREPLY     -1   /* host does not reply */
  45. #define PINGSOCKET    -3   /* unable to obtain socket */
  46. #define PINGPROTO     -4   /* unknown protcol ICMP */
  47. #define PINGSEND      -5   /* send failed */
  48. #define PINGRECV      -6   /* recv failed */
  49. #define PINGHOST      -7   /* unable to resolfe host given in ftpping() */
  50.                            /* Added - Kristy Smith 06/91 */
  51.  
  52. short _Far16 _Cdecl ping(unsigned long, short) ;          /* correction - kks 04/01/91 */
  53. void _Far16 _Cdecl ftplogoff(void);                    /* correction - kks 04/01/91 */
  54. short _Far16 _Cdecl ftpget(char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , short);
  55. short _Far16 _Cdecl ftpput(char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , short);
  56. short _Far16 _Cdecl ftpappend(char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , short);
  57. short _Far16 _Cdecl ftpputunique(char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , short);
  58. short _Far16 _Cdecl ftpcd(char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 );
  59. short _Far16 _Cdecl ftpmkd(char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 );
  60. short _Far16 _Cdecl ftprmd(char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 );
  61. short _Far16 _Cdecl ftpdelete(char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 );
  62. short _Far16 _Cdecl ftprename(char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 );
  63. short _Far16 _Cdecl ftpls(char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 );
  64. short _Far16 _Cdecl ftpdir(char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 );
  65. short _Far16 _Cdecl ftpproxy(char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , short);
  66. short _Far16 _Cdecl ftpsite(char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 );
  67. short _Far16 _Cdecl ftpquote(char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 );
  68. short _Far16 _Cdecl ftppwd(char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char* _Seg16 , short);        /* Added - Kristy Smith 04/91 */
  69. short _Far16 _Cdecl ftpsys(char * _Seg16 , char * _Seg16 , char * _Seg16 , char * _Seg16 , char* _Seg16 , short);        /* Added - Kristy Smtih 04/91 */
  70. short _Far16 _Cdecl ftpping(char * _Seg16 , short, unsigned long * _Seg16 );                     /* Added - Kristy Smith 06/91 */
  71.