Debian Codegraph @

src/common/file_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_FILE_PROTOCOL_TYPES
19 #define INCLUDED_FILE_PROTOCOL_TYPEScxx . . $ `src/common/file_protocol.h:19:9`!
20
21 #ifdef JUST_NEED_TYPEScxx . . $ `src/common/packet.h:36:10`!
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 /******************************************************/
33 typedef structcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_0#
34 {
35 bn_shortcxx . . $ pvpgn/bn_short# sizecxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_0#size.;
36 bn_shortcxx . . $ pvpgn/bn_short# typecxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_0#type.;
37 } PACKED_ATTRcxx . . $ `src/common/setup_before.h:383:10`!() t_file_headercxx . . $ pvpgn/t_file_header#;
38 /******************************************************/
39
40
41 /******************************************************/
42 typedef structcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_1#
43 {
44 t_file_headercxx . . $ pvpgn/t_file_header# hcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_1#h.;
45 } PACKED_ATTRcxx . . $ `src/common/setup_before.h:383:10`!() t_file_genericcxx . . $ pvpgn/t_file_generic#;
46 /******************************************************/
47
48
49 /******************************************************/
50 /*
51 CLIENT FILE MPQ REQ
52 2D 00 00 01 36 38 58 49 -...68XI
53 50 58 45 53 00 00 00 00 00 00 00 00 00 00 00 00 PXES............
54 00 2C 58 E1 09 28 BC 01 49 58 38 36 76 65 72 31 .,X..(..IX86ver1
55 2E 6D 70 71 00 .mpq.
56
57 CLIENT FILE TOS REQ
58 28 00 00 01 36 38 58 49 (...68XI
59 50 58 45 53 00 00 00 00 00 00 00 00 00 00 00 00 PXES............
60 30 C3 89 86 09 4F BD 01 74 6F 73 2E 74 78 74 00 0....O..tos.txt.
61
62 CLIENT FILE AD REQ
63 2D 00 00 01 36 38 58 49 -...68XI
64 50 58 45 53 2B 51 02 00 2E 70 63 78 00 00 00 00 PXES+Q...pcx....
65 00 00 00 00 58 01 B2 00 61 64 30 32 35 31 32 62 ....X...ad02512b
66 2E 70 63 78 00 .pcx.
67 */
68 #define CLIENT_FILE_REQcxx . . $ `src/common/file_protocol.h:68:9`! 0x0100
69 typedef structcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_2#
70 {
71 t_file_headercxx . . $ pvpgn/t_file_header# hcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_2#h.;
72 bn_intcxx . . $ pvpgn/bn_int# archtagcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_2#archtag.;
73 bn_intcxx . . $ pvpgn/bn_int# clienttagcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_2#clienttag.;
74 bn_intcxx . . $ pvpgn/bn_int# adidcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_2#adid.;
75 bn_intcxx . . $ pvpgn/bn_int# extensiontagcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_2#extensiontag.; /* unlike other tags, this one is "forward" */
76 bn_intcxx . . $ pvpgn/bn_int# startoffsetcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_2#startoffset.; /* is this actually used in the original clients? */
77 bn_longcxx . . $ pvpgn/bn_long# timestampcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_2#timestamp.;
78 /* filename */
79 } PACKED_ATTRcxx . . $ `src/common/setup_before.h:383:10`!() t_client_file_reqcxx . . $ pvpgn/t_client_file_req#;
80 /******************************************************/
81
82 /*
83 the next 2 file requests appeared on w3 first. first it sends filereq2 then
84 server replies with some rnadom int then client sends filereq3 (which is a
85 raw packet with no valuable header) then filename then server replies with
86 normal file_reply and sends the contents
87
88 12: recv class=file[0x03] type=unknown[0x0200] length=20
89 0000: 14 00 00 02 36 38 58 49 33 52 41 57 00 00 00 00 ....68XI3RAW....
90 0010: 00 00 00 00 ....
91 */
92 #define CLIENT_FILE_REQ2cxx . . $ `src/common/file_protocol.h:92:9`! 0x0200
93 typedef structcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_3#
94 {
95 t_file_headercxx . . $ pvpgn/t_file_header# hcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_3#h.;
96 bn_intcxx . . $ pvpgn/bn_int# archtagcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_3#archtag.;
97 bn_intcxx . . $ pvpgn/bn_int# clienttagcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_3#clienttag.;
98 bn_longcxx . . $ pvpgn/bn_long# unknown1cxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_3#unknown1.;
99 } PACKED_ATTRcxx . . $ `src/common/setup_before.h:383:10`!() t_client_file_req2cxx . . $ pvpgn/t_client_file_req2#;
100
101 #define CLIENT_FILE_REQ3cxx . . $ `src/common/file_protocol.h:101:9`! 0x0000
102 typedef structcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_4#
103 {
104 bn_intcxx . . $ pvpgn/bn_int# unknown1cxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_4#unknown1.;
105 bn_longcxx . . $ pvpgn/bn_long# timestampcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_4#timestamp.;
106 bn_longcxx . . $ pvpgn/bn_long# unknown2cxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_4#unknown2.;
107 bn_longcxx . . $ pvpgn/bn_long# unknown3cxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_4#unknown3.;
108 bn_longcxx . . $ pvpgn/bn_long# unknown4cxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_4#unknown4.;
109 bn_longcxx . . $ pvpgn/bn_long# unknown5cxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_4#unknown5.;
110 bn_longcxx . . $ pvpgn/bn_long# unknown6cxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_4#unknown6.;
111 /* filename */
112 } PACKED_ATTRcxx . . $ `src/common/setup_before.h:383:10`!() t_client_file_req3cxx . . $ pvpgn/t_client_file_req3#;
113
114 /******************************************************/
115 /* SERVER FILE MPQ REPLY
116 25 00 00 00 33 1B 00 00 %...3...
117 00 00 00 00 00 00 00 00 00 2C 58 E1 09 28 BC 01 .........,X..(..
118 49 58 38 36 76 65 72 31 2E 6D 70 71 00 IX86ver1.mpq.
119
120 SERVER FILE TOS REPLY
121 20 00 00 00 E4 00 00 00 P."..... .......
122 00 00 00 00 00 00 00 00 30 C3 89 86 09 4F BD 01 ........0....O..
123 74 6F 73 2E 74 78 74 00 tos.txt.
124
125 SERVER FILE AD REPLY
126 25 00 00 00 30 2E 00 00 %...0...
127 2B 51 02 00 2E 70 63 78 00 00 00 00 58 01 B2 00 +Q...pcx....X...
128 61 64 30 32 35 31 32 62 2E 70 63 78 00 ad02512b.pcx.
129 */
130 #define SERVER_FILE_REPLYcxx . . $ `src/common/file_protocol.h:130:9`! 0x0000
131 typedef structcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_5#
132 {
133 t_file_headercxx . . $ pvpgn/t_file_header# hcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_5#h.;
134 bn_intcxx . . $ pvpgn/bn_int# filelencxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_5#filelen.;
135 bn_intcxx . . $ pvpgn/bn_int# adidcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_5#adid.;
136 bn_intcxx . . $ pvpgn/bn_int# extensiontagcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_5#extensiontag.; /* unlike other tags, this one is "forward" */
137 bn_longcxx . . $ pvpgn/bn_long# timestampcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_5#timestamp.;
138 /* filename */
139 } PACKED_ATTRcxx . . $ `src/common/setup_before.h:383:10`!() t_server_file_replycxx . . $ pvpgn/t_server_file_reply#;
140 /******************************************************/
141
142 #define SERVER_FILE_UNKNOWN1cxx . . $ `src/common/file_protocol.h:142:9`! 0xdeadbeef
143 typedef structcxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_6#
144 {
145 bn_intcxx . . $ pvpgn/bn_int# unknowncxx . . $ pvpgn/$anonymous_type_d2bac4e24f922c3_6#unknown.;
146 } PACKED_ATTRcxx . . $ `src/common/setup_before.h:383:10`!() t_server_file_unknown1cxx . . $ pvpgn/t_server_file_unknown1#;
147
148 }
149
150 #endif