Debian Codegraph @

src/common/d2cs_d2gs_protocol.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2000,2001 Onlyer ([email protected])
3 * Copyright (C) 2001 faster ([email protected])
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19 #ifndef INCLUDED_D2CS_D2GS_PROTOCOL_H
20 #define INCLUDED_D2CS_D2GS_PROTOCOL_Hcxx . . $ `src/common/d2cs_d2gs_protocol.h:20:9`!
21 /*
22 * there is only little comments in this header file
23 * check the documents for more details
24 */
25
26 /* include your own header files here */
27 #include "common/bn_type.h"cxx . . $ `<file>/src/common/bn_type.h`/
28
29 #ifdef D2GS
30 # include "bn_types.h"
31 #pragma pack(push, pack01, 1)
32 #endif
33
34 namespace pvpgncxx . . $ pvpgn/
35 {
36
37 typedef structcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_0#
38 {
39 bn_shortcxx . . $ pvpgn/bn_short# sizecxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_0#size.;
40 bn_shortcxx . . $ pvpgn/bn_short# typecxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_0#type.;
41 bn_intcxx . . $ pvpgn/bn_int# seqnocxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_0#seqno.; /* seqno, set by the sender */
42 } t_d2cs_d2gs_headercxx . . $ pvpgn/t_d2cs_d2gs_header#;
43
44 typedef structcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_1#
45 {
46 t_d2cs_d2gs_headercxx . . $ pvpgn/t_d2cs_d2gs_header# hcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_1#h.;
47 } t_d2cs_d2gs_genericcxx . . $ pvpgn/t_d2cs_d2gs_generic#;
48
49 #define D2CS_D2GS_AUTHREQcxx . . $ `src/common/d2cs_d2gs_protocol.h:49:9`! 0x10
50 typedef structcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_2#
51 {
52 t_d2cs_d2gs_headercxx . . $ pvpgn/t_d2cs_d2gs_header# hcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_2#h.;
53 bn_intcxx . . $ pvpgn/bn_int# sessionnumcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_2#sessionnum.;
54 bn_intcxx . . $ pvpgn/bn_int# signlencxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_2#signlen.;
55 /* realm name */
56 /* key check sum, maybe 128 bytes */
57 } t_d2cs_d2gs_authreqcxx . . $ pvpgn/t_d2cs_d2gs_authreq#;
58
59 #define D2GS_D2CS_AUTHREPLYcxx . . $ `src/common/d2cs_d2gs_protocol.h:59:9`! 0x11
60 typedef structcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_3#
61 {
62 t_d2cs_d2gs_headercxx . . $ pvpgn/t_d2cs_d2gs_header# hcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_3#h.;
63 bn_intcxx . . $ pvpgn/bn_int# versioncxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_3#version.;
64 bn_intcxx . . $ pvpgn/bn_int# checksumcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_3#checksum.;
65 bn_intcxx . . $ pvpgn/bn_int# randnumcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_3#randnum.;
66 bn_intcxx . . $ pvpgn/bn_int# signlencxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_3#signlen.;
67 bn_basiccxx . . $ pvpgn/bn_basic# signcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_3#sign.[128];
68 } t_d2gs_d2cs_authreplycxx . . $ pvpgn/t_d2gs_d2cs_authreply#;
69
70 #define D2CS_D2GS_AUTHREPLYcxx . . $ `src/common/d2cs_d2gs_protocol.h:70:9`! 0x11
71 typedef structcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_4#
72 {
73 t_d2cs_d2gs_headercxx . . $ pvpgn/t_d2cs_d2gs_header# hcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_4#h.;
74 bn_intcxx . . $ pvpgn/bn_int# replycxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_4#reply.;
75 } t_d2cs_d2gs_authreplycxx . . $ pvpgn/t_d2cs_d2gs_authreply#;
76 #define D2CS_D2GS_AUTHREPLY_SUCCEEDcxx . . $ `src/common/d2cs_d2gs_protocol.h:76:9`! 0x00
77 #define D2CS_D2GS_AUTHREPLY_BAD_VERSIONcxx . . $ `src/common/d2cs_d2gs_protocol.h:77:9`! 0x01
78 #define D2CS_D2GS_AUTHREPLY_BAD_CHECKSUMcxx . . $ `src/common/d2cs_d2gs_protocol.h:78:9`! 0x02
79
80 #define D2GS_D2CS_SETGSINFOcxx . . $ `src/common/d2cs_d2gs_protocol.h:80:9`! 0x12
81 typedef structcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_5#
82 {
83 t_d2cs_d2gs_headercxx . . $ pvpgn/t_d2cs_d2gs_header# hcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_5#h.;
84 bn_intcxx . . $ pvpgn/bn_int# maxgamecxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_5#maxgame.;
85 bn_intcxx . . $ pvpgn/bn_int# gameflagcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_5#gameflag.;
86 } t_d2gs_d2cs_setgsinfocxx . . $ pvpgn/t_d2gs_d2cs_setgsinfo#;
87
88 #define D2CS_D2GS_SETGSINFOcxx . . $ `src/common/d2cs_d2gs_protocol.h:88:9`! 0x12
89 typedef structcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_6#
90 {
91 t_d2cs_d2gs_headercxx . . $ pvpgn/t_d2cs_d2gs_header# hcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_6#h.;
92 bn_intcxx . . $ pvpgn/bn_int# maxgamecxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_6#maxgame.;
93 bn_intcxx . . $ pvpgn/bn_int# gameflagcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_6#gameflag.;
94 } t_d2cs_d2gs_setgsinfocxx . . $ pvpgn/t_d2cs_d2gs_setgsinfo#;
95
96 #define D2CS_D2GS_ECHOREQcxx . . $ `src/common/d2cs_d2gs_protocol.h:96:9`! 0x13
97 typedef structcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_7#
98 {
99 t_d2cs_d2gs_headercxx . . $ pvpgn/t_d2cs_d2gs_header# hcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_7#h.;
100 } t_d2cs_d2gs_echoreqcxx . . $ pvpgn/t_d2cs_d2gs_echoreq#;
101
102 #define D2GS_D2CS_ECHOREPLYcxx . . $ `src/common/d2cs_d2gs_protocol.h:102:9`! 0x13
103 typedef structcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_8#
104 {
105 t_d2cs_d2gs_headercxx . . $ pvpgn/t_d2cs_d2gs_header# hcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_8#h.;
106 } t_d2gs_d2cs_echoreplycxx . . $ pvpgn/t_d2gs_d2cs_echoreply#;
107
108 #define D2CS_D2GS_CONTROLcxx . . $ `src/common/d2cs_d2gs_protocol.h:108:9`! 0x14
109 typedef structcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_9#
110 {
111 t_d2cs_d2gs_headercxx . . $ pvpgn/t_d2cs_d2gs_header# hcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_9#h.;
112 bn_intcxx . . $ pvpgn/bn_int# cmdcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_9#cmd.;
113 bn_intcxx . . $ pvpgn/bn_int# valuecxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_9#value.;
114 } t_d2cs_d2gs_controlcxx . . $ pvpgn/t_d2cs_d2gs_control#;
115 #define D2CS_D2GS_CONTROL_CMD_RESTARTcxx . . $ `src/common/d2cs_d2gs_protocol.h:115:9`! 0x01
116 #define D2CS_D2GS_CONTROL_CMD_SHUTDOWNcxx . . $ `src/common/d2cs_d2gs_protocol.h:116:9`! 0x02
117 #define D2CS_D2GS_CONTROL_VALUE_DEFAULTcxx . . $ `src/common/d2cs_d2gs_protocol.h:117:9`! 0x00
118
119 #define D2CS_D2GS_SETINITINFOcxx . . $ `src/common/d2cs_d2gs_protocol.h:119:9`! 0x15
120 typedef structcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_10#
121 {
122 t_d2cs_d2gs_headercxx . . $ pvpgn/t_d2cs_d2gs_header# hcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_10#h.;
123 bn_intcxx . . $ pvpgn/bn_int# timecxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_10#time.;
124 bn_intcxx . . $ pvpgn/bn_int# gs_idcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_10#gs_id.;
125 bn_intcxx . . $ pvpgn/bn_int# ac_versioncxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_10#ac_version.;
126 /* ac_checksum */
127 } t_d2cs_d2gs_setinitinfocxx . . $ pvpgn/t_d2cs_d2gs_setinitinfo#;
128
129 #define D2CS_D2GS_SETCONFFILEcxx . . $ `src/common/d2cs_d2gs_protocol.h:129:9`! 0x16
130 typedef structcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_11#
131 {
132 t_d2cs_d2gs_headercxx . . $ pvpgn/t_d2cs_d2gs_header# hcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_11#h.;
133 bn_intcxx . . $ pvpgn/bn_int# sizecxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_11#size.;
134 bn_intcxx . . $ pvpgn/bn_int# reserved1cxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_11#reserved1.;
135 /* conf file (null terminated string) */
136 } t_d2cs_d2gs_setconffilecxx . . $ pvpgn/t_d2cs_d2gs_setconffile#;
137
138 #define D2CS_D2GS_CREATEGAMEREQcxx . . $ `src/common/d2cs_d2gs_protocol.h:138:9`! 0x20
139 typedef structcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_12#
140 {
141 t_d2cs_d2gs_headercxx . . $ pvpgn/t_d2cs_d2gs_header# hcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_12#h.;
142 bn_bytecxx . . $ pvpgn/bn_byte# laddercxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_12#ladder.;
143 bn_bytecxx . . $ pvpgn/bn_byte# expansioncxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_12#expansion.;
144 bn_bytecxx . . $ pvpgn/bn_byte# difficultycxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_12#difficulty.;
145 bn_bytecxx . . $ pvpgn/bn_byte# hardcorecxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_12#hardcore.;
146 /* gamename */
147 /* gamepass */
148 /* gamedesc */
149 /* create by acctname */
150 /* create by charname */
151 /* create by ip address(string) */
152 } t_d2cs_d2gs_creategamereqcxx . . $ pvpgn/t_d2cs_d2gs_creategamereq#;
153 #define D2GAME_DIFFICULTY_NORMALcxx . . $ `src/common/d2cs_d2gs_protocol.h:153:9`! 0
154 #define D2GAME_DIFFICULTY_NIGHTMAREcxx . . $ `src/common/d2cs_d2gs_protocol.h:154:9`! 1
155 #define D2GAME_DIFFICULTY_HELLcxx . . $ `src/common/d2cs_d2gs_protocol.h:155:9`! 2
156
157 #define D2GS_D2CS_CREATEGAMEREPLYcxx . . $ `src/common/d2cs_d2gs_protocol.h:157:9`! 0x20
158 typedef structcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_13#
159 {
160 t_d2cs_d2gs_headercxx . . $ pvpgn/t_d2cs_d2gs_header# hcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_13#h.;
161 bn_intcxx . . $ pvpgn/bn_int# resultcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_13#result.;
162 bn_intcxx . . $ pvpgn/bn_int# gameidcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_13#gameid.;
163 } t_d2gs_d2cs_creategamereplycxx . . $ pvpgn/t_d2gs_d2cs_creategamereply#;
164 #define D2GS_D2CS_CREATEGAME_SUCCEEDcxx . . $ `src/common/d2cs_d2gs_protocol.h:164:9`! 0
165 #define D2GS_D2CS_CREATEGAME_FAILEDcxx . . $ `src/common/d2cs_d2gs_protocol.h:165:9`! 1
166
167
168 #define D2CS_D2GS_JOINGAMEREQcxx . . $ `src/common/d2cs_d2gs_protocol.h:168:9`! 0x21
169 typedef structcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_14#
170 {
171 t_d2cs_d2gs_headercxx . . $ pvpgn/t_d2cs_d2gs_header# hcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_14#h.;
172 bn_intcxx . . $ pvpgn/bn_int# gameidcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_14#gameid.;
173 bn_intcxx . . $ pvpgn/bn_int# tokencxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_14#token.;
174 /* character name */
175 /* account name */
176 /* client ip address(string) */
177 } t_d2cs_d2gs_joingamereqcxx . . $ pvpgn/t_d2cs_d2gs_joingamereq#;
178
179 #define D2GS_D2CS_JOINGAMEREPLYcxx . . $ `src/common/d2cs_d2gs_protocol.h:179:9`! 0x21
180 typedef structcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_15#
181 {
182 t_d2cs_d2gs_headercxx . . $ pvpgn/t_d2cs_d2gs_header# hcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_15#h.;
183 bn_intcxx . . $ pvpgn/bn_int# resultcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_15#result.;
184 bn_intcxx . . $ pvpgn/bn_int# gameidcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_15#gameid.;
185 } t_d2gs_d2cs_joingamereplycxx . . $ pvpgn/t_d2gs_d2cs_joingamereply#;
186 #define D2GS_D2CS_JOINGAME_SUCCEEDcxx . . $ `src/common/d2cs_d2gs_protocol.h:186:9`! 0
187 #define D2GS_D2CS_JOINGAME_FAILEDcxx . . $ `src/common/d2cs_d2gs_protocol.h:187:9`! 1
188 #define D2GS_D2CS_JOINGAME_GAME_FULLcxx . . $ `src/common/d2cs_d2gs_protocol.h:188:9`! 2
189
190 #define D2GS_D2CS_UPDATEGAMEINFOcxx . . $ `src/common/d2cs_d2gs_protocol.h:190:9`! 0x22
191 typedef structcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_16#
192 {
193 t_d2cs_d2gs_headercxx . . $ pvpgn/t_d2cs_d2gs_header# hcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_16#h.;
194 bn_intcxx . . $ pvpgn/bn_int# flagcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_16#flag.;
195 bn_intcxx . . $ pvpgn/bn_int# gameidcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_16#gameid.;
196 bn_intcxx . . $ pvpgn/bn_int# charlevelcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_16#charlevel.;
197 bn_intcxx . . $ pvpgn/bn_int# charclasscxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_16#charclass.;
198 /* charname */
199 } t_d2gs_d2cs_updategameinfocxx . . $ pvpgn/t_d2gs_d2cs_updategameinfo#;
200 #define D2GS_D2CS_UPDATEGAMEINFO_FLAG_UPDATEcxx . . $ `src/common/d2cs_d2gs_protocol.h:200:9`! 0
201 #define D2GS_D2CS_UPDATEGAMEINFO_FLAG_ENTERcxx . . $ `src/common/d2cs_d2gs_protocol.h:201:9`! 1
202 #define D2GS_D2CS_UPDATEGAMEINFO_FLAG_LEAVEcxx . . $ `src/common/d2cs_d2gs_protocol.h:202:9`! 2
203
204 #define D2GS_D2CS_CLOSEGAMEcxx . . $ `src/common/d2cs_d2gs_protocol.h:204:9`! 0x23
205 typedef structcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_17#
206 {
207 t_d2cs_d2gs_headercxx . . $ pvpgn/t_d2cs_d2gs_header# hcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_17#h.;
208 bn_intcxx . . $ pvpgn/bn_int# gameidcxx . . $ pvpgn/$anonymous_type_dfcfbe7283f3304a_17#gameid.;
209 } t_d2gs_d2cs_closegamecxx . . $ pvpgn/t_d2gs_d2cs_closegame#;
210
211 #ifdef D2GS
212 #pragma pack(pop, pack01)
213 #endif
214
215 }
216
217 #endif