Debian Codegraph @

src/common/init_protocol.h

raw symbols SCIP
1 /*
2 * Copyright (C) 1998,1999 Ross Combs ([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_INIT_PROTOCOL_TYPEScxx . . $ `src/common/init_protocol.h:19:9`!
19 #define INCLUDED_INIT_PROTOCOL_TYPEScxx . . $ `src/common/init_protocol.h:19:9`!
20
21 #ifdef JUST_NEED_TYPEScxx . . $ `src/bnetd/connection.h:235:9`!
22 # include "common/bn_type.h"cxx . . $ `<file>/src/common/bn_type.h`/
23 #else
24 # define JUST_NEED_TYPES
25 # include "common/bn_type.h"
26 # undef JUST_NEED_TYPES
27 #endif
28
29 namespace pvpgncxx . . $ pvpgn/
30 {
31
32 /* There is no header for this packet class and there is only
33 * one packet type.
34 */
35
36 /*
37 * There is a single byte sent upon initial connections that
38 * reports the connection type.
39 */
40
41 /******************************************************/
42 #define CLIENT_INITCONNcxx . . $ `src/common/init_protocol.h:42:9`! 0x1
43 typedef structcxx . . $ pvpgn/$anonymous_type_7cca3803bac3bad7_0#
44 {
45 bn_bytecxx . . $ pvpgn/bn_byte# cclasscxx . . $ pvpgn/$anonymous_type_7cca3803bac3bad7_0#cclass.;
46 } PACKED_ATTRcxx . . $ `src/common/setup_before.h:383:10`!() t_client_initconncxx . . $ pvpgn/t_client_initconn#;
47 /******************************************************/
48
49 }
50
51 #endif
52
53
54 /*****/
55 #ifndef JUST_NEED_TYPEScxx . . $ `src/common/packet.h:36:10`!
56 #ifndef INCLUDED_INIT_PROTOCOL_PROTOS
57 #define INCLUDED_INIT_PROTOCOL_PROTOScxx . . $ `src/common/init_protocol.h:57:9`!
58
59 #define CLIENT_INITCONN_CLASS_BNETcxx . . $ `src/common/init_protocol.h:59:9`! 0x01 /* standard bnet protocol */
60 #define CLIENT_INITCONN_CLASS_FILEcxx . . $ `src/common/init_protocol.h:60:9`! 0x02 /* BNFTP */
61 #define CLIENT_INITCONN_CLASS_BOTcxx . . $ `src/common/init_protocol.h:61:9`! 0x03
62 #define CLIENT_INITCONN_CLASS_ENCcxx . . $ `src/common/init_protocol.h:62:9`! 0x04 /* encrypted connection */
63 #define CLIENT_INITCONN_CLASS_TELNETcxx . . $ `src/common/init_protocol.h:63:9`! 0x0d /* Hack alert: look for user to hit \r when they connect */
64 #define CLIENT_INITCONN_CLASS_D2CScxx . . $ `src/common/init_protocol.h:64:9`! 0x01
65 #define CLIENT_INITCONN_CLASS_D2GScxx . . $ `src/common/init_protocol.h:65:9`! 0x64
66 #define CLIENT_INITCONN_CLASS_D2CS_BNETDcxx . . $ `src/common/init_protocol.h:66:9`! 0x65
67 #define CLIENT_INITCONN_CLASS_LOCALMACHINEcxx . . $ `src/common/init_protocol.h:67:9`! 0x98 /* local computer connecting via 127.0.0.1 */
68
69 #endif
70 #endif