2002-04-06 14:04:41 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2001-08-17 05:46:24 +00:00
|
|
|
#ifndef _SESSION_H
|
|
|
|
#define _SESSION_H
|
|
|
|
|
|
|
|
#define TCPMODE_NONE 0
|
|
|
|
#define TCPMODE_IFC 1 /* ifcico native EMSI on raw TCP */
|
2003-11-22 21:42:44 +00:00
|
|
|
#define TCPMODE_ITN 2 /* EMSI encapsulation through telnet */
|
2001-08-17 05:46:24 +00:00
|
|
|
#define TCPMODE_IBN 3 /* Binkp protocol */
|
|
|
|
|
|
|
|
#define SESSION_UNKNOWN 0
|
|
|
|
#define SESSION_FTSC 1
|
|
|
|
#define SESSION_YOOHOO 2
|
|
|
|
#define SESSION_EMSI 3
|
|
|
|
#define SESSION_BINKP 4
|
|
|
|
|
|
|
|
#define SESSION_SLAVE 0
|
|
|
|
#define SESSION_MASTER 1
|
|
|
|
|
|
|
|
extern node *nlent;
|
|
|
|
extern fa_list *remote;
|
|
|
|
|
|
|
|
typedef struct _file_list {
|
|
|
|
struct _file_list *next;
|
|
|
|
char *local;
|
|
|
|
char *remote;
|
|
|
|
int disposition;
|
|
|
|
FILE *flofp;
|
|
|
|
off_t floff;
|
|
|
|
} file_list;
|
|
|
|
|
|
|
|
#define HOLD_MAIL "h"
|
2004-07-16 14:56:38 +00:00
|
|
|
#define NONHOLD_MAIL "dco"
|
|
|
|
#define ALL_MAIL "dcoh"
|
2001-08-17 05:46:24 +00:00
|
|
|
|
|
|
|
extern int session_flags;
|
|
|
|
extern int remote_flags;
|
|
|
|
#define FTSC_XMODEM_CRC 1 /* xmodem-crc */
|
|
|
|
#define FTSC_XMODEM_RES 2 /* sealink-resync */
|
|
|
|
#define FTSC_XMODEM_SLO 4 /* sealink-overdrive */
|
|
|
|
#define FTSC_XMODEM_XOF 8 /* xoff flow control, aka macflow */
|
|
|
|
#define WAZOO_ZMODEM_ZAP 1 /* ZedZap allowed */
|
|
|
|
|
|
|
|
#define SESSION_WAZOO 0x8000 /* WaZOO type file requests */
|
|
|
|
#define SESSION_BARK 0x4000 /* bark type file requests */
|
|
|
|
#define SESSION_IFNA 0x2000 /* DietIFNA transfer from Yoohoo session */
|
|
|
|
#define SESSION_FNC 0x1000 /* Filename conversion sending files */
|
|
|
|
|
|
|
|
#define SESSION_TCP 0x0800 /* Established over TCP/IP link */
|
|
|
|
#define SESSION_HYDRA 0x0400 /* Hydra special file requests */
|
|
|
|
|
|
|
|
extern int localoptions;
|
|
|
|
#define NOCALL 0x0001
|
2002-04-06 14:04:41 +00:00
|
|
|
// #define NOHOLD 0x0002
|
|
|
|
// #define NOPUA 0x0004
|
2001-08-17 05:46:24 +00:00
|
|
|
#define NOWAZOO 0x0008
|
|
|
|
#define NOEMSI 0x0010
|
|
|
|
#define NOFREQS 0x0020
|
|
|
|
#define NOZMODEM 0x0040
|
|
|
|
#define NOZEDZAP 0x0080
|
|
|
|
#define NOJANUS 0x0100
|
|
|
|
#define NOHYDRA 0x0200
|
2005-07-03 20:32:21 +00:00
|
|
|
#define NOPLZ 0x0400
|
|
|
|
#define NOGZBZ2 0x0800
|
2001-08-17 05:46:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
struct _history history; /* History record for sessions */
|
|
|
|
|
|
|
|
int session(faddr*,node*,int,int,char*);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|