netspool init phase
This commit is contained in:
@@ -271,7 +271,10 @@ typedef enum {
|
||||
cf_debug_level,
|
||||
#endif
|
||||
cf_split_inbound,
|
||||
cf_netspool,
|
||||
#ifdef NETSPOOL
|
||||
cf_netspool_host,
|
||||
cf_netspool_port,
|
||||
#endif
|
||||
BFORCE_NUMBER_OF_KEYWORDS
|
||||
} bforce_config_keyword;
|
||||
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
|
||||
|
||||
#define NS_NOTINIT (0)
|
||||
#define NS_UNCONF (1)
|
||||
#define NS_ERROR (2)
|
||||
#define NS_READY (3)
|
||||
#define NS_RECEIVING (4)
|
||||
#define NS_RECVFILE (5)
|
||||
#define NS_CLOSED (6)
|
||||
|
||||
#define STRBUF (1024)
|
||||
|
||||
typedef struct {
|
||||
int state;
|
||||
char *error;
|
||||
int socket;
|
||||
int filename[STRBUF];
|
||||
unsigned long long length;
|
||||
} s_netspool_state;
|
||||
|
||||
@@ -22,6 +22,10 @@
|
||||
#include "outbound.h"
|
||||
#include "prot_common.h"
|
||||
|
||||
#ifdef NETSPOOL
|
||||
#include "netspool.h"
|
||||
#endif
|
||||
|
||||
typedef enum session {
|
||||
SESSION_UNKNOWN,
|
||||
SESSION_FTSC,
|
||||
@@ -155,6 +159,9 @@ const s_modemport *modemport;
|
||||
|
||||
s_falist *mailfor; /* Remote valid addresses */
|
||||
s_fsqueue queue; /* Send files queue */
|
||||
#ifdef NETSPOOL
|
||||
s_netspool_state netspool;
|
||||
#endif
|
||||
};
|
||||
typedef struct state s_state;
|
||||
|
||||
@@ -194,7 +201,7 @@ int session_check_addr(s_faddr addr);
|
||||
int session_get_password(s_faddr addr, char *buffer, size_t buflen);
|
||||
int session_remote_lookup(s_sysaddr *addrs, int anum);
|
||||
void session_remote_log_status(void);
|
||||
int session_check_password(s_faddr addr, const char *passwd);
|
||||
/*int session_check_password(s_faddr addr, const char *passwd); seems not used*/
|
||||
int session_set_inbound(void);
|
||||
void session_set_freqs_status(void);
|
||||
void session_set_send_options(void);
|
||||
|
||||
Reference in New Issue
Block a user