home *** CD-ROM | disk | FTP | other *** search
- #include "Terminal.h"
-
- extern int mode;
- #define CMD_MODE 1 /* Command mode */
- #define CONV_MODE 2 /* Converse mode */
-
- /* Session control structure; only one entry is used at a time */
- struct session
- {
- int type;
- #define FREE 0
- #define TELNET 1
- #define FTP 2
- #define AX25TNC 3
- #define FINGER 4
- #define NRSESSION 5
- #define DNSQUERY 6
-
- char *name; /* Name of remote host */
- union
- {
- struct ftp *ftp;
- struct telnet *telnet;
- struct ax25_cb *ax25_cb;
- struct finger *finger;
- struct dns *dns;
- struct nr4cb *nr4_cb ;
- struct wimpapp *wimpapp;
- } cb;
- void (*parse)(); /* Where to hand typed input when conversing */
- FILE *record; /* Receive record file */
- char *rfile; /* Record file name */
- FILE *upload; /* Send file */
- char *ufile; /* Upload file name */
- Terminal *window; /* Window structure handle */
- int echo;
- int raw;
- int keypad;
- };
- #define NULLSESSION (struct session *)0
- extern unsigned nsessions;
- extern struct session *sessions;
- extern struct session *current;
-
- int dosession(int, char **);
- int go(struct session *);
- int doclose(int, char **);
- int doreset(int, char **);
- int dokick(int, char **);
- struct session *newsession(void);
- void freesession(struct session *);
- int dorecord(int, char **);
- int doupload(int, char **);
- void close_sess(struct session *);
- int session_number(struct session *);
-
- extern int16 lport;
-