Debian Codegraph @

src/d2dbs/dbserver.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2001 sousou ([email protected])
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18 #ifndef INCLUDED_DBSERVER_H
19 #define INCLUDED_DBSERVER_H
20
21 #include "common/list.h"
22
23 namespace pvpgn
24 {
25
26 namespace d2dbs
27 {
28
29 typedef struct {
30 int sd;
31 unsigned int ipaddr;
32 unsigned char major;
33 unsigned char minor;
34 unsigned char type;
35 unsigned char stats;
36 unsigned int serverid;
37 unsigned int verified;
38 unsigned char serverip[16];
39 int last_active;
40 int nCharsInReadBuffer;
41 int nCharsInWriteBuffer;
42 char ReadBuf[kBufferSize];
43 char WriteBuf[kBufferSize];
44 } t_d2dbs_connection;
45
46 typedef struct raw_preset_d2gsid {
47 unsigned int ipaddr;
48 unsigned int d2gsid;
49 struct raw_preset_d2gsid *next;
50 } t_preset_d2gsid;
51
52 int dbs_server_main(void);
53 int dbs_server_shutdown_connection(t_d2dbs_connection* conn);
54
55 extern t_list * dbs_server_connection_list;
56
57 }
58
59 }
60
61 #endif