⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ckcker.h

📁 KERMIT工具 这在办公室下载不了,很多人都没有载不到.
💻 H
📖 第 1 页 / 共 3 页
字号:
/* Used by SET FILE command but also by protocol and i/o modules */#define XMODE_A 0	/* Transfer mode Automatic */#define XMODE_M 1	/* Transfer mode Manual    */#define   XYFILN 0  	/*  Naming  */#define     XYFN_L 0	/*    Literal */#define     XYFN_C 1	/*    Converted */#define   XYFILT 1  	/*  Type    */#define     XYFT_T 0    /*    Text  */#define     XYFT_B 1    /*    Binary */#define     XYFT_I 2    /*    Image or Block (VMS) */#define     XYFT_L 3	/*    Labeled (tagged binary) (VMS or OS/2) */#define     XYFT_U 4    /*    Binary Undefined (VMS) */#define     XYFT_M 5	/*    MacBinary (Macintosh) */#define     XYFT_X 6	/*    TENEX (FTP TYPE L 8) */#define     XYFT_D 99   /*    Debug (for session logs) */#define   XYFILW 2      /*  Warning */#define   XYFILD 3      /*  Display */#define   XYFILC 4      /*  Character set */#define   XYFILF 5      /*  Record Format */#define     XYFF_S  0   /*    Stream */#define     XYFF_V  1   /*    Variable */#define     XYFF_VB 2   /*    Variable with RCW's */#define     XYFF_F  3   /*    Fixed length */#define     XYFF_U  4   /*    Undefined */#define   XYFILR 6      /*  Record length */#define   XYFILO 7      /*  Organization */#define     XYFO_S 0    /*    Sequential */#define     XYFO_I 1    /*    Indexed */#define     XYFO_R 2    /*    Relative */#define   XYFILP 8      /*  Printer carriage control */#define     XYFP_N 0    /*    Newline (imbedded control characters) */#define     XYFP_F 1    /*    FORTRAN (space, 1, +, etc, in column 1 */#define     XYFP_P 2    /*    Special printer carriage controls */#define     XYFP_X 4    /*    None */#define   XYFILX 9      /*  Collision Action */#define     XYFX_A 3    /*    Append */#define     XYFX_Q 5    /*    Ask */#define     XYFX_B 2    /*    Backup */#define     XYFX_D 4    /*    Discard */#define     XYFX_R 0    /*    Rename */#define     XYFX_X 1    /*    Replace */#define     XYFX_U 6    /*    Update */#define     XYFX_M 7    /*    Modtimes differ */#define   XYFILB 10     /*  Blocksize */#define   XYFILZ 11     /*  Disposition */#define     XYFZ_N 0    /*    New, Create */#define     XYFZ_A 1    /*    New, append if file exists, else create */#define     XYFZ_O 2    /*    Old, file must exist */#define   XYFILS 12     /*  File Byte Size */#define   XYFILL 13     /*  File Label (VMS) */#define   XYFILI 14     /*  File Incomplete */#define   XYFILQ 15     /*  File path action (strip or not) */#define   XYFILG 16     /*  File download directory */#define   XYFILA 17     /*  Line terminator for local text files */#define     XYFA_L 012  /*    LF (as in UNIX) */#define     XYFA_C 015  /*    CR (as in OS-9 or Mac OS) */#define     XYFA_2 000  /*  CRLF -- Note: this must be defined as 0 */#define   XYFILY 18     /*  Destination */#define   XYFILV 19	/*  EOF Detection Method */#define     XYEOF_L 0   /*    File length */#define     XYEOF_Z 1   /*    Ctrl-Z in file */#define   XYFILH   20   /*  OUTPUT parameters - buffered, blocking, etc */#define   XYFIBP   21	/*  BINARY-PATTERN */#define   XYFITP   22   /*  TEXT-PATTERN */#define   XYFIPA   23   /*  PATTERNS ON/OFF */#define   XYFILU   24   /*  UCS ... */#define   XYF_PRM  25   /*  PERMISSIONS, PROTECTION */#define   XYF_INSP 26   /*  INSPECTION (SCAN) */#define   XYF_DFLT 27   /*  DEFAULT (character sets) */#define   XYF_SSPA 28   /*  STRINGSPACE */#define   XYF_LSIZ 29   /*  LISTSIZE *//* File Type (return code) definitions and corresponding name strings */#define FT_7BIT 0			/* 7-bit text */#define FT_8BIT 1			/* 8-bit text */#define FT_UTF8 2			/* UTF8 */#define FT_UCS2 3			/* UCS2 */#define FT_TEXT 4			/* Unknown text */#define FT_BIN  5			/* Binary */#define SCANFILEBUF 49152		/* Size of file scan (48K) *//* Connection closed reasons */#define WC_REMO   0			/* Closed by remote */#define WC_CLOS   1			/* Closed from our end */#define WC_TELOPT 2			/* Telnet negotiation failure */#ifdef BIGBUFOK#define FTPATTERNS 256#else#define FTPATTERNS 64#endif /* BIGBUFOK */#define SYS_UNK    0			/* Selected server system types */#define SYS_UNIX   1#define SYS_WIN32  2#define SYS_VMS    3#define SYS_OS2    4#define SYS_DOS    5#define SYS_TOPS10 6#define SYS_TOPS20 7#define SYS_VOS    8#define SYS_DG     9#define SYS_OSK    10#define SYS_MAX    11#ifdef CK_SMALL#define PWBUFL 63#else#define PWBUFL 255#endif /* CK_SMALL */#ifdef OS2struct tt_info_rec {			/* Terminal emulation info */    char  *x_name;    char *x_aliases[4];    char  *x_id;};#endif /* OS2 *//* BEEP TYPES */#define BP_BEL  0			/* Terminal bell */#define BP_NOTE 1			/* Info */#define BP_WARN 2			/* Warning */#define BP_FAIL 3			/* Error */#ifndef NOIKSD#ifdef IKSDB				/* IKSD Database definitions *//* Field values */#define DBF_INUSE    1			/* Flag bits... In use */#define DBF_USER     2			/* Real user (versus anonymous) */#define DBF_LOGGED   4			/* Logged in (versus not) *//* Data Definitions... *//* Numeric fields, hex, right justified, 0-filled on left */#define db_FLAGS     0			/* Field 0: Flags */#define DB_FLAGS     0			/* Offset: 0 */#define dB_FLAGS     4			/* Length: 4 (hex digits) */#define db_ATYPE     1			/* Field 1: Authentication type */#define DB_ATYPE     4			/* 4 hex digits */#define dB_ATYPE     4#define db_AMODE     2			/* Field 2: Authentication mode */#define DB_AMODE     8			/* 4 hex digits */#define dB_AMODE     4#define db_STATE     3			/* Field 3: State - 4 hex digits*/#define DB_STATE    12			/* 4 hex digits */#define dB_STATE     4#define db_MYPID     4			/* Field 4: My PID */#define DB_MYPID    16			/* 16 hex digits left padded with 0 */#define dB_MYPID    16#define db_SADDR     5			/* Field 5: Server (my) IP address */#define DB_SADDR    32			/* 16 hex digits left padded with 0 */#define dB_SADDR    16#define db_CADDR     6			/* Field 6: Client IP address */#define DB_CADDR    48			/* 16 hex digits left padded with 0 */#define dB_CADDR    16/* Date-time fields (17 right-adjusted in 18 for Y10K readiness) */#define db_START     7			/* Field 7: Session start date-time */#define DB_START    65			/* 64 is leading space for Y10K */#define dB_START    17#define db_LASTU     8			/* Field 8: Last lastu date-time */#define DB_LASTU    83			/* 82 is leading space for Y10K */#define dB_LASTU    17#define db_ULEN      9			/* Field 9: Length of Username */#define DB_ULEN    100			/* 4 hex digits */#define dB_ULEN      4#define db_DLEN     10			/* Field 10: Length of Directory */#define DB_DLEN    104			/* 4 hex digits */#define dB_DLEN      4#define db_ILEN     11			/* Field 11: Length of Info */#define DB_ILEN    108			/* 4 hex digits */#define dB_ILEN      4#define db_PAD1     12			/* Field 12: (Reserved) */#define DB_PAD1    112			/* filled with spaces */#define dB_PAD1    912/* String fields, all right-padded with blanks */#define db_USER     13			/* Field 13: Username */#define DB_USER   1024			/* right-padded with spaces */#define dB_USER   1024#define db_DIR      14			/* Field 14: Current directory */#define DB_DIR    2048			/* right-padded with spaces */#define dB_DIR    1024#define db_INFO     15			/* Field 15: State-specific info */#define DB_INFO   3072			/* right-padded with spaces */#define dB_INFO   1024#define DB_RECL   4096			/* Database record length *//* Offset, length, and type of each field thru its db_XXX symbol */#define DBT_HEX 1			/* Hexadecimal number */#define DBT_STR 2			/* String */#define DBT_DAT 3			/* Date-Time yyyymmdd hh:mm:ss */#define DBT_UND 9			/* Undefined and blank */struct iksdbfld {    int off;				/* Position (offset) */    int len;				/* Length (bytes) */    int typ;				/* Data type */};_PROTOTYP(int dbinit, (void));_PROTOTYP(int initslot, (int));_PROTOTYP(int getslot, (void));_PROTOTYP(int freeslot, (int));_PROTOTYP(int updslot, (int));_PROTOTYP(int slotstate, (int, char *, char *, char *));_PROTOTYP(int slotdir, (char *, char *));#endif /* IKSDB */#endif /* NOIKSD *//* ANSI forward declarations for protocol-related functions. */_PROTOTYP( int input, (void) );_PROTOTYP( int inibufs, (int, int) );_PROTOTYP( int makebuf, (int, int, CHAR [], struct pktinfo *) );_PROTOTYP( int mksbuf, (int) );_PROTOTYP( int mkrbuf, (int) );_PROTOTYP( int spack, (char, int, int, CHAR *) );_PROTOTYP( VOID proto, (void) );_PROTOTYP( int rpack, (void) );_PROTOTYP( int ack, (void) );_PROTOTYP( int nack, (int) );_PROTOTYP( int ackn, (int) );_PROTOTYP( int ack1, (CHAR *) );_PROTOTYP( int ackns, (int, CHAR *) );#ifdef STREAMING_PROTOTYP( int fastack, (void) );#endif /* STREAMING */_PROTOTYP( int resend, (int) );_PROTOTYP( int errpkt, (CHAR *) );_PROTOTYP( VOID logpkt, (char, int, CHAR *, int) );_PROTOTYP( CHAR dopar, (CHAR) );_PROTOTYP( int chk1, (CHAR *, int) );_PROTOTYP( unsigned int chk2, (CHAR *, int) );_PROTOTYP( unsigned int chk3, (CHAR *, int) );_PROTOTYP( int sipkt, (char) );_PROTOTYP( int sopkt, (void) );_PROTOTYP( int sinit, (void) );_PROTOTYP( VOID rinit, (CHAR *) );_PROTOTYP( int spar, (CHAR *) );_PROTOTYP( int rcvfil, (char *) );_PROTOTYP( CHAR * rpar, (void) );_PROTOTYP( int gnfile, (void) );_PROTOTYP( int getsbuf, (int) );_PROTOTYP( int getrbuf, (void) );_PROTOTYP( int freesbuf, (int) );_PROTOTYP( int freerbuf, (int) );_PROTOTYP( int dumpsbuf, (void) );_PROTOTYP( int dumprbuf, (void) );_PROTOTYP( VOID freerpkt, (int) );_PROTOTYP( int chkwin, (int, int, int) );_PROTOTYP( int rsattr, (CHAR *) );_PROTOTYP( char *getreason, (char *) );_PROTOTYP( int scmd, (char, CHAR *) );_PROTOTYP( int encstr, (CHAR *) );_PROTOTYP( int decode, (CHAR *, int (*)(char), int) );_PROTOTYP( int bdecode, (CHAR *, int (*)(char)) );_PROTOTYP( int fnparse, (char *) );_PROTOTYP( int syscmd, (char *, char *) );_PROTOTYP( int cwd, (char *) );_PROTOTYP( int remset, (char *) );_PROTOTYP( int initattr, (struct zattr *) );_PROTOTYP( int gattr, (CHAR *, struct zattr *) );_PROTOTYP( int adebu, (char *, struct zattr *) );_PROTOTYP( int canned, (CHAR *) );_PROTOTYP( int opent, (struct zattr *) );_PROTOTYP( int ckopenx, (struct zattr *) );_PROTOTYP( int opena, (char *, struct zattr *) );_PROTOTYP( int openi, (char *) );_PROTOTYP( int openo, (char *, struct zattr *, struct filinfo *) );_PROTOTYP( int openc, (int, char *) );_PROTOTYP( int reof, (char *, struct zattr *) );_PROTOTYP( VOID reot, (void) );_PROTOTYP( int sfile, (int) );_PROTOTYP( int sattr, (int, int) );_PROTOTYP( int sdata, (void) );_PROTOTYP( int seof, (int) );_PROTOTYP( int sxeof, (int) );_PROTOTYP( int seot, (void) );_PROTOTYP( int window, (int) );_PROTOTYP( int clsif, (void) );_PROTOTYP( int clsof, (int) );_PROTOTYP( CHAR setgen, (char, char *, char *, char *) );_PROTOTYP( int getpkt, (int, int) );_PROTOTYP( int maxdata, (void) );_PROTOTYP( int putsrv, (char) );_PROTOTYP( int puttrm, (char) );_PROTOTYP( int putque, (char) );_PROTOTYP( int putfil, (char) );_PROTOTYP( int putmfil, (char) );_PROTOTYP( int zputfil, (char) );_PROTOTYP( VOID zdstuff, (CHAR) );_PROTOTYP( int tinit, (int) );_PROTOTYP( VOID pktinit, (void) );_PROTOTYP( VOID resetc, (void) );_PROTOTYP( VOID xsinit, (void) );_PROTOTYP( int adjpkl, (int,int,int) );_PROTOTYP( int chktimo, (int,int) );_PROTOTYP( int nxtpkt, (void) );_PROTOTYP( VOID rcalcpsz, (void) );_PROTOTYP( int srinit, (int, int, int) );_PROTOTYP( VOID tstats, (void) );_PROTOTYP( VOID fstats, (void) );_PROTOTYP( VOID intmsg, (long) );_PROTOTYP( VOID ermsg, (char *) );_PROTOTYP( int chkint, (void) );_PROTOTYP( VOID sdebu, (int) );_PROTOTYP( VOID rdebu, (CHAR *, int) );_PROTOTYP( char * dbchr, ( int ) );#ifdef COMMENT_PROTOTYP( SIGTYP stptrap, (int, int) );_PROTOTYP( SIGTYP trap, (int, int) );#else_PROTOTYP( SIGTYP stptrap, (int) );_PROTOTYP( SIGTYP trap, (int) );#endif /* COMMENT */_PROTOTYP( char * ck_errstr, (void) );#ifndef NOXFER_PROTOTYP( int agnbyte, (void) );#endif /* NOXFER */_PROTOTYP( int xgnbyte, (int, int, int (*)(void)) );_PROTOTYP( int xpnbyte, (int, int, int, int (*)(char)) );/* User interface functions needed by main program, etc. */_PROTOTYP( int doconect, (int,int) );_PROTOTYP( VOID setflow, (void) );_PROTOTYP( VOID prescan, (int) );_PROTOTYP( VOID setint, (void) );_PROTOTYP( VOID doinit, (void) );_PROTOTYP( VOID dofast, (void) );_PROTOTYP( VOID cmdini, (void) );_PROTOTYP( int dotake, (char *) );_PROTOTYP( int cmdlin, (void) );#ifdef OS2_PROTOTYP( int conect, (int) );#else /* OS2 */_PROTOTYP( int conect, (void) );#endif /* OS2 */_PROTOTYP( int ckcgetc, (int) );_PROTOTYP( int ckcputc, (int) );_PROTOTYP (int mdmhup, (void) );_PROTOTYP( VOID herald, (void) );_PROTOTYP( VOID fixcmd, (void) );_PROTOTYP( int doarg, (char) );_PROTOTYP( int doxarg, (char **, int) );_PROTOTYP( VOID usage, (void) );_PROTOTYP( VOID doclean, (int) );_PROTOTYP( int sndhlp, () );_PROTOTYP( int sndstring, (char *) );_PROTOTYP( VOID ckhost, (char *, int) );_PROTOTYP( int gettcs, (int, int) );_PROTOTYP( VOID getdialenv, (void) );_PROTOTYP( VOID setprefix, (int) );_PROTOTYP(VOID initproto,(int,char *,char *,char *,char *,char *,char*,char*));_PROTOTYP( VOID initpat, (void) );_PROTOTYP( VOID initcsets, (void) );_PROTOTYP( char * getsysid, (char *) );_PROTOTYP( int getsysix, (char *) );#ifdef CK_TIMERS_PROTOTYP( VOID rttinit, (void) );_PROTOTYP( int getrtt, (int, int) );#endif /* CK_TIMERS */_PROTOTYP( int is_a_tty, (int) );_PROTOTYP( int snddir, (char *) );_PROTOTYP( int snddel, (char *) );_PROTOTYP( int sndtype, (char *) );_PROTOTYP( int dooutput, (char *, int) );_PROTOTYP( int isabsolute, (char *) );_PROTOTYP( VOID whoarewe, (void) );_PROTOTYP( int ckmkdir, (int, char *, char **, int, int) );_PROTOTYP( int autoexitchk, (CHAR) );_PROTOTYP( VOID fcps, (void) );#ifdef OS2_PROTOTYP( VOID logchar, (unsigned short) );#else /* OS2 */_PROTOTYP( VOID logchar, (char) );#endif /* OS2 */_PROTOTYP( VOID logstr, (char *, int) );_PROTOTYP( VOID dologend, (void) );#ifdef NOLOCAL#define dologshow()#else_PROTOTYP( long dologshow, (int) );#endif /* NOLOCAL */#ifdef NODISPLAY#define fxdinit(a)#else_PROTOTYP( VOID fxdinit, (int) );#endif /* NODISPLAY */_PROTOTYP( int fileselect, (char *,			    char *, char *, char *, char *,			    long, long,			    int, int,			    char **) );_PROTOTYP( char * whoami, (void) );_PROTOTYP( int shoesc, (int) );#ifdef CK_APC_PROTOTYP( int chkspkt, (char *) );_PROTOTYP( int kstart, (CHAR) );_PROTOTYP( VOID autodown, (int));#ifdef CK_XYZ_PROTOTYP( int zstart, (CHAR) );#endif /* CK_XYZ */#ifdef OS2_PROTOTYP(void apc_command, (int, char*));#endif /* OS2 */#endif /* CK_APC *//* User Query data structures and functions */struct txtbox {    char * t_buf;			/* Destination buffer address */    int    t_len;			/* Destination buffer length */    char * t_lbl;			/* Label for this field */    char * t_dflt;			/* Default response for this field */    int    t_echo;			/* 0 = no, 1 = yes, 2 = asterisks */};#define DEFAULT_UQ_TIMEOUT  0_PROTOTYP(int uq_ok, (char *,char *,int,char **,int) );_PROTOTYP(int uq_txt, (char *,char *,int,char **,char *,int,char *,int));_PROTOTYP(int uq_mtxt, (char *,char **,int,struct txtbox[]) );_PROTOTYP(int uq_file, (char *,char *,int,char **,char *,char *,int));#ifdef CK_URLstruct urldata {    char * sav;			/* The URL itself */    char * svc;			/* Service */    char * usr;			/* User */    char * psw;			/* Password */    char * hos;			/* Host */    char * por;			/* Port */    char * pth;			/* Path */};_PROTOTYP(int urlparse, (char *, struct urldata *));#endif /* CK_URL */#endif /* CKCKER_H *//* End of ckcker.h */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -