home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
files
/
telecomm
/
nhclb120
/
session.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-09-26
|
963b
|
43 lines
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
char *name; /* Name of remote host */
union {
struct ftp *ftp;
struct telnet *telnet;
#ifdef AX25
struct ax25_cb *ax25_cb;
#endif
#ifdef _FINGER
struct finger *finger;
#endif
#ifdef NETROM
struct nr4cb *nr4_cb ;
#endif
} cb;
int (*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 */
char noecho; /* Echo flag */
};
#define NULLSESSION (struct session *)0
extern unsigned nsessions;
extern struct session *sessions;
extern struct session *current;
struct session *newsession();
extern int16 lport;