Annotation of sbbs/sbbs3/startup.h, revision 1.1.1.1

1.1       root        1: /* startup.h */
                      2: 
                      3: /* Synchronet main/telnet server thread startup structure */
                      4: 
                      5: /* $Id: startup.h,v 1.6 2000/11/30 01:56:06 rswindell Exp $ */
                      6: 
                      7: /****************************************************************************
                      8:  * @format.tab-size 4          (Plain Text/Source Code File Header)                    *
                      9:  * @format.use-tabs true       (see http://www.synchro.net/ptsc_hdr.html)              *
                     10:  *                                                                                                                                                     *
                     11:  * Copyright 2000 Rob Swindell - http://www.synchro.net/copyright.html         *
                     12:  *                                                                                                                                                     *
                     13:  * This program is free software; you can redistribute it and/or                       *
                     14:  * modify it under the terms of the GNU General Public License                         *
                     15:  * as published by the Free Software Foundation; either version 2                      *
                     16:  * of the License, or (at your option) any later version.                                      *
                     17:  * See the GNU General Public License for more details: gpl.txt or                     *
                     18:  * http://www.fsf.org/copyleft/gpl.html                                                                                *
                     19:  *                                                                                                                                                     *
                     20:  * Anonymous FTP access to the most recent released source is available at     *
                     21:  * ftp://vert.synchro.net, ftp://cvs.synchro.net and ftp://ftp.synchro.net     *
                     22:  *                                                                                                                                                     *
                     23:  * Anonymous CVS access to the development source and modification history     *
                     24:  * is available at cvs.synchro.net:/cvsroot/sbbs, example:                                     *
                     25:  * cvs -d :pserver:[email protected]:/cvsroot/sbbs login                       *
                     26:  *     (just hit return, no password is necessary)                                                     *
                     27:  * cvs -d :pserver:[email protected]:/cvsroot/sbbs checkout src                *
                     28:  *                                                                                                                                                     *
                     29:  * For Synchronet coding style and modification guidelines, see                                *
                     30:  * http://www.synchro.net/source.html                                                                          *
                     31:  *                                                                                                                                                     *
                     32:  * You are encouraged to submit any modifications (preferably in Unix diff     *
                     33:  * format) via e-mail to [email protected]                                                                      *
                     34:  *                                                                                                                                                     *
                     35:  * Note: If this box doesn't appear square, then you need to fix your tabs.    *
                     36:  ****************************************************************************/
                     37: 
                     38: #ifdef _WIN32
                     39: #include <windows.h>
                     40: #endif
                     41: 
                     42: #include "client.h"
                     43: #include "ringbuf.h"
                     44: 
                     45: typedef struct {
                     46: 
                     47:        DWORD   size;                           // sizeof(bbs_struct_t)
                     48:     WORD       first_node;
                     49:     WORD       last_node;
                     50:        WORD    telnet_port;
                     51:        WORD    rlogin_port;
                     52:        WORD    reserved_word4;
                     53:        WORD    reserved_word3;
                     54:        WORD    reserved_word2;
                     55:        WORD    reserved_word1;
                     56:     DWORD   telnet_interface;
                     57:     DWORD      options;                        // See BBS_OPT definitions
                     58:     DWORD      rlogin_interface;
                     59:     DWORD      reserved_dword7;
                     60:     DWORD      reserved_dword6;
                     61:     RingBuf** node_spybuf;             // Spy output buffer (each node)
                     62:     RingBuf** node_inbuf;              // User input buffer (each node)
                     63:     DWORD      reserved_dword3;
                     64:     DWORD      reserved_dword2;
                     65:     DWORD      reserved_dword1;
                     66:        int     (*lputs)(char*);
                     67:        void    (*status)(char*);
                     68:     void       (*started)(void);
                     69:     void       (*terminated)(int code);
                     70:     void       (*clients)(int active);
                     71:     void       (*thread_up)(BOOL up);
                     72:        void    (*socket_open)(BOOL open);
                     73:     void       (*client_on)(BOOL on, int sock, client_t*);
                     74:     void       (*reserved_fptr4)(void);
                     75:     void       (*reserved_fptr3)(void);
                     76:     void       (*reserved_fptr2)(void);
                     77:     void       (*reserved_fptr1)(void);
                     78:     char    ctrl_dir[128];
                     79:     char       reserved_path8[128];
                     80:     char       reserved_path7[128];
                     81:     char       reserved_path6[128];
                     82:     char       reserved_path5[128];
                     83:     char       reserved_path4[128];
                     84:     char       reserved_path3[128];
                     85:        char    answer_sound[128];
                     86:        char    hangup_sound[128];
                     87:     char       reserved_path2[128];
                     88:     char       reserved_path1[128];
                     89: 
                     90: } bbs_startup_t;
                     91: 
                     92: #define BBS_OPT_KEEP_ALIVE                     (1<<0)  /* Send keep-alives                                     */
                     93: #define BBS_OPT_XTRN_MINIMIZED         (1<<1)  /* Run externals minimized                      */
                     94: #define BBS_OPT_AUTO_LOGON                     (1<<2)  /* Auto-logon via IP                            */
                     95: #define BBS_OPT_DEBUG_TELNET           (1<<3)  /* Debug telnet commands                        */
                     96: #define BBS_OPT_SYSOP_AVAILABLE                (1<<4)  /* Available for chat                           */
                     97: #define BBS_OPT_ALLOW_RLOGIN           (1<<5)  /* Allow logins via BSD RLogin          */
                     98: #define BBS_OPT_USE_2ND_RLOGIN         (1<<6)  /* Use 2nd username in BSD RLogin       */
                     99: #define BBS_OPT_NO_QWK_EVENTS          (1<<7)  /* Don't run QWK-related events         */
                    100: #define BBS_OPT_NO_HOST_LOOKUP         (1<<11)
                    101: #define BBS_OPT_LOCAL_TIMEZONE         (1<<30) /* Don't force UCT/GMT                          */
                    102: #define BBS_OPT_MUTE                           (1<<31) /* Mute sounds                                          */
                    103: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.