summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-19 18:39:25 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-19 18:39:25 +0800
commit5ec0b0c8dc4b9aa479f8010f7a94aa3d99b0aac5 (patch)
tree1fff81f99998e464662b39e7f515ecd2fa2480a8 /include
parent7f2af2544f444e62db177d0848928a485c0cfcf4 (diff)
downloadpttbbs-5ec0b0c8dc4b9aa479f8010f7a94aa3d99b0aac5.tar
pttbbs-5ec0b0c8dc4b9aa479f8010f7a94aa3d99b0aac5.tar.gz
pttbbs-5ec0b0c8dc4b9aa479f8010f7a94aa3d99b0aac5.tar.bz2
pttbbs-5ec0b0c8dc4b9aa479f8010f7a94aa3d99b0aac5.tar.lz
pttbbs-5ec0b0c8dc4b9aa479f8010f7a94aa3d99b0aac5.tar.xz
pttbbs-5ec0b0c8dc4b9aa479f8010f7a94aa3d99b0aac5.tar.zst
pttbbs-5ec0b0c8dc4b9aa479f8010f7a94aa3d99b0aac5.zip
* 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
Diffstat (limited to 'include')
-rw-r--r--include/daemons.h56
-rw-r--r--include/logind.h28
2 files changed, 56 insertions, 28 deletions
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