From 5ec0b0c8dc4b9aa479f8010f7a94aa3d99b0aac5 Mon Sep 17 00:00:00 2001 From: piaip Date: Fri, 19 Jun 2009 10:39:25 +0000 Subject: * move emaildb to standalone regmaildb * integrate the daemon structure to daemons.h git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4671 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/daemons.h | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ include/logind.h | 28 ---------------------------- 2 files changed, 56 insertions(+), 28 deletions(-) create mode 100644 include/daemons.h delete mode 100644 include/logind.h (limited to 'include') diff --git a/include/daemons.h b/include/daemons.h new file mode 100644 index 00000000..7d6d6217 --- /dev/null +++ b/include/daemons.h @@ -0,0 +1,56 @@ +#ifndef _BBS_DAEMONS_H + +#include "pttstruct.h" + +/////////////////////////////////////////////////////////////////////// +// From Host Nick Daemon (fromd) + +#ifndef FROMD_ADDR +#define FROMD_ADDR ":5130" +#endif + +/////////////////////////////////////////////////////////////////////// +// Register E-Mail Database Daemon (regmaild) + +#ifndef REGMAILD_ADDR +#define REGMAILD_ADDR ":5131" +#endif + +enum { + REGMAILDB_REQ_COUNT = 1, + REGMAILDB_REQ_SET, +}; + +typedef struct +{ + size_t cb; + int operation; + char userid [IDLEN+1]; + char email [50]; // TODO define const in pttstruct.h +} regmaildb_req; + + +/////////////////////////////////////////////////////////////////////// +// Login Daemon (logind) + +typedef struct login_data +{ + // size of current structure + size_t cb; + void *ack; + + // terminal information + int t_lines, t_cols; + int encoding; + Fnv32_t client_code; + + // user authentication + char userid[IDLEN+1]; + char hostip[IPV4LEN+1]; + char port [IDLEN+1]; + +} login_data; + +#endif // _BBS_DAEMONS_H + +// vim:et diff --git a/include/logind.h b/include/logind.h deleted file mode 100644 index 37d2c658..00000000 --- a/include/logind.h +++ /dev/null @@ -1,28 +0,0 @@ -/////////////////////////////////////////////////////////////////////// -// Login Daemon Data - -#ifndef _BBS_LOGIND_H - -#include "bbs.h" - -typedef struct login_data -{ - // size of current structure - size_t cb; - void *ack; - - // terminal information - int t_lines, t_cols; - int encoding; - Fnv32_t client_code; - - // user authentication - char userid[IDLEN+1]; - char hostip[IPV4LEN+1]; - char port [IDLEN+1]; - -} login_data; - -#endif // _BBS_LOGIND_H - -// vim:et -- cgit v1.2.3