|
|
1.1 root 1: /* $Header: ftp_var.h,v 2.2 86/12/15 11:41:12 jqj Exp $ */
2: /* $Log: ftp_var.h,v $
3: * Revision 2.2 86/12/15 11:41:12 jqj
4: * Added support for more ViewPoint file types (no other attributes, though)
5: *
6: * Revision 2.1 86/12/11 06:12:10 jqj
7: * Eliminated form, mode, and struct commands. Started adding support for
8: * more file types.
9: *
10: * Revision 2.0 85/11/21 07:22:46 jqj
11: * 4.3BSD standard release
12: *
13: * Revision 1.1 85/05/27 06:30:59 jqj
14: * Initial revision
15: *
16: * Revision 1.1 85/05/27 06:30:59 jqj
17: * Initial revision
18: *
19: * based on Berkeley tcp/ftp
20: */
21: /* ftp_var.h 4.6 83/07/26 */
22: /*
23: * FTP global variables.
24: */
25: #include "Filing4.h"
26:
27: /*
28: * Options and other state info.
29: */
30: int trace; /* trace packets exchanged */
31: int hash; /* print # for each buffer transferred */
32: int verbose; /* print messages coming back from server */
33: int fromatty; /* input is from a terminal */
34: int interactive; /* interactively prompt on m* cmds */
35: int debug; /* debugging level */
36: int bell; /* ring bell on cmd completion */
37: int doglob; /* glob local file names */
38: int autologin; /* establish user account on connection */
39:
40: char typename[32]; /* name of file transfer type */
41: int typevalue; /* file transfer type */
42:
43: char *hostname; /* name of host connected to */
44:
45:
46:
47: char line[200]; /* input line buffer */
48: char *stringbase; /* current scan point in line buffer */
49: char argbuf[200]; /* argument storage buffer */
50: char *argbase; /* current storage point in arg buffer */
51: int margc; /* count of arguments on input line */
52: char *margv[20]; /* args parsed from input line */
53:
54: /*
55: * Format of command table.
56: */
57: struct cmd {
58: char *c_name; /* name of command */
59: char *c_help; /* help string */
60: char c_bell; /* give bell when command completes */
61: char c_conn; /* must be connected to use command */
62: int (*c_handler)(); /* function to call */
63: };
64:
65: extern char *tail();
66: extern char *index();
67: extern char *rindex();
68: extern char *remglob();
69: extern int errno;
70:
71: /*
72: * Connection information
73: */
74: extern CourierConnection *connected; /* connected to server */
75:
76: /*
77: * Type codes
78: */
79: #define TYPE_A 2 /* ASCII -- map CR <=> LF and Type=tText */
80: #define TYPE_I 0 /* image and Type=tUnspecified */
81: #define TYPE_VP 4353 /* ViewPoint: image */
82: #define TYPE_Interpress 4361 /* VP Interpress master: image */
83: #define TYPE_VPCanvas 4428 /* VP Canvas: image */
84: #define TYPE_VPDictionary 4383 /* VP Dictionary: image */
85: #define TYPE_VPMailNote 4 /* VP Mail Note: ASCII */
86: #define TYPE_VPReference 4427 /* VP Reference Icon: image */
87:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.