7 #define CONN_SYN_ACK_N 1
11 #define DISCONN_SYN_N 5
12 #define DISCONN_SYN_ACK_N 6
13 #define DISCONN_ACK_N 7
23 #define IA_FREEMB_LEN (16)
24 #define IA_LOGIN_LEN (32)
25 #define IA_PASSWD_LEN (32)
26 #define IA_MAX_TYPE_LEN (16)
27 #define IA_MAX_MSG_LEN (235)
28 #define IA_MAX_MSG_LEN_8 (1030)
29 #define IA_DIR_NAME_LEN (16)
30 #define IA_MAGIC_LEN (6)
31 #define IA_PROTO_VER_LEN (2)
33 #define ST_NOT_INETABLE (0)
34 #define ST_INETABLE (1)
38 typedef int8_t string16[IA_DIR_NAME_LEN];
39 //-----------------------------------------------------------------------------
42 int8_t magic[IA_MAGIC_LEN];
43 int8_t protoVer[IA_PROTO_VER_LEN];
47 //-----------------------------------------------------------------------------
50 int8_t magic[IA_MAGIC_LEN];
51 int8_t protoVer[IA_PROTO_VER_LEN];
52 int8_t loginS[IA_LOGIN_LEN];
53 int32_t len; // Byte-order dependent
54 int8_t type[IA_MAX_TYPE_LEN];
55 int8_t login[IA_LOGIN_LEN];
58 //-----------------------------------------------------------------------------
62 int8_t loginS[IA_LOGIN_LEN];
63 int32_t len; // Byte-order dependent
64 int8_t type[IA_MAX_TYPE_LEN];
65 int8_t login[IA_LOGIN_LEN];
66 uint32_t dirs; // Byte-order dependent
68 //-----------------------------------------------------------------------------
71 int32_t len; // Byte-order dependent
72 int8_t type[IA_MAX_TYPE_LEN];
73 uint32_t rnd; // Byte-order dependent
74 int32_t userTimeOut; // Byte-order dependent
75 int32_t aliveDelay; // Byte-order dependent
76 string16 dirName[DIR_NUM];
78 //-----------------------------------------------------------------------------
82 int32_t len; // Byte-order dependent
83 int8_t type[IA_MAX_TYPE_LEN];
84 uint32_t rnd; // Byte-order dependent
85 int32_t userTimeOut; // Byte-order dependent
86 int32_t aliveDelay; // Byte-order dependent
87 string16 dirName[DIR_NUM];
89 //-----------------------------------------------------------------------------
92 int8_t magic[IA_MAGIC_LEN];
93 int8_t protoVer[IA_PROTO_VER_LEN];
94 int8_t loginS[IA_LOGIN_LEN];
95 int32_t len; // Byte-order dependent
96 int8_t type[IA_MAX_TYPE_LEN];
97 uint32_t rnd; // Byte-order dependent
99 //-----------------------------------------------------------------------------
103 int8_t loginS[IA_LOGIN_LEN];
104 int32_t len; // Byte-order dependent
105 int8_t type[IA_MAX_TYPE_LEN];
106 uint32_t rnd; // Byte-order dependent
108 //-----------------------------------------------------------------------------
111 int32_t len; // Byte-order dependent
112 int8_t type[IA_MAX_TYPE_LEN];
113 uint32_t rnd; // Byte-order dependent
115 int64_t mu[DIR_NUM]; // Byte-order dependent
116 int64_t md[DIR_NUM]; // Byte-order dependent
118 int64_t su[DIR_NUM]; // Byte-order dependent
119 int64_t sd[DIR_NUM]; // Byte-order dependent
121 int64_t cash; // Byte-order dependent
123 int8_t freeMb[IA_FREEMB_LEN];
125 //-----------------------------------------------------------------------------
129 int32_t len; // Byte-order dependent
130 int8_t type[IA_MAX_TYPE_LEN];
131 uint32_t rnd; // Byte-order dependent
133 int64_t mu[DIR_NUM]; // Byte-order dependent
134 int64_t md[DIR_NUM]; // Byte-order dependent
136 int64_t su[DIR_NUM]; // Byte-order dependent
137 int64_t sd[DIR_NUM]; // Byte-order dependent
139 int64_t cash; // Äåíüãè óìíîæåííûå íà 1000 - Byte-order dependent
140 int8_t freeMb[IA_FREEMB_LEN];
142 uint32_t status; // Byte-order dependent
145 //-----------------------------------------------------------------------------
148 int8_t magic[IA_MAGIC_LEN];
149 int8_t protoVer[IA_PROTO_VER_LEN];
150 int8_t loginS[IA_LOGIN_LEN];
151 int32_t len; // Byte-order dependent
152 int8_t type[IA_MAX_TYPE_LEN];
153 uint32_t rnd; // Byte-order dependent
155 //-----------------------------------------------------------------------------
159 int8_t loginS[IA_LOGIN_LEN];
160 int32_t len; // Byte-order dependent
161 int8_t type[IA_MAX_TYPE_LEN];
162 uint32_t rnd; // Byte-order dependent
164 //-----------------------------------------------------------------------------
167 int8_t magic[IA_MAGIC_LEN];
168 int8_t protoVer[IA_PROTO_VER_LEN];
169 int8_t loginS[IA_LOGIN_LEN];
170 int32_t len; // Byte-order dependent
171 int8_t type[IA_MAX_TYPE_LEN];
172 int8_t login[IA_LOGIN_LEN];
175 //-----------------------------------------------------------------------------
179 int8_t loginS[IA_LOGIN_LEN];
180 int32_t len; // Byte-order dependent
181 int8_t type[IA_MAX_TYPE_LEN];
182 int8_t login[IA_LOGIN_LEN];
185 //-----------------------------------------------------------------------------
186 struct DISCONN_SYN_ACK_6
188 int32_t len; // Byte-order dependent
189 int8_t type[IA_MAX_TYPE_LEN];
190 uint32_t rnd; // Byte-order dependent
192 //-----------------------------------------------------------------------------
193 struct DISCONN_SYN_ACK_8
196 int32_t len; // Byte-order dependent
197 int8_t type[IA_MAX_TYPE_LEN];
198 uint32_t rnd; // Byte-order dependent
200 //-----------------------------------------------------------------------------
203 int8_t magic[IA_MAGIC_LEN];
204 int8_t protoVer[IA_PROTO_VER_LEN];
205 int8_t loginS[IA_LOGIN_LEN];
206 int32_t len; // Byte-order dependent
207 int8_t type[IA_MAX_TYPE_LEN];
208 uint32_t rnd; // Byte-order dependent
210 //-----------------------------------------------------------------------------
214 int8_t loginS[IA_LOGIN_LEN];
215 int32_t len; // Byte-order dependent
216 int8_t type[IA_MAX_TYPE_LEN];
217 uint32_t rnd; // Byte-order dependent
219 //-----------------------------------------------------------------------------
222 int32_t len; // Byte-order dependent
223 int8_t type[IA_MAX_TYPE_LEN];
227 //-----------------------------------------------------------------------------
231 int32_t len; // Byte-order dependent
232 int8_t type[IA_MAX_TYPE_LEN];
236 //-----------------------------------------------------------------------------
239 int32_t len; // Byte-order dependent
240 int8_t type[IA_MAX_TYPE_LEN];
243 //-----------------------------------------------------------------------------
247 int32_t len; // Byte-order dependent
248 int8_t type[IA_MAX_TYPE_LEN];
251 //-----------------------------------------------------------------------------
254 int32_t len; // Byte-order dependent
255 int8_t type[IA_MAX_TYPE_LEN];
257 int8_t text[IA_MAX_MSG_LEN];
259 //-----------------------------------------------------------------------------
262 int32_t len; // Byte-order dependent
263 int8_t type[IA_MAX_TYPE_LEN];
265 uint32_t sendTime; // Byte-order dependent
267 int8_t text[IA_MAX_MSG_LEN];
270 //-----------------------------------------------------------------------------
274 int32_t len; // Byte-order dependent
275 int8_t type[IA_MAX_TYPE_LEN];
277 uint32_t sendTime; // Byte-order dependent
279 int8_t text[IA_MAX_MSG_LEN_8];
281 //-----------------------------------------------------------------------------
284 int64_t mu[DIR_NUM]; // Byte-order dependent
285 int64_t md[DIR_NUM]; // Byte-order dependent
287 int64_t su[DIR_NUM]; // Byte-order dependent
288 int64_t sd[DIR_NUM]; // Byte-order dependent
290 int64_t cash; // Äåíüãè óìíîæåííûå íà 1000 - Byte-order dependent
291 int8_t freeMb[IA_FREEMB_LEN];
292 int32_t status; // Byte-order dependent
294 //-----------------------------------------------------------------------------
295 #define CONN_SYN_7 CONN_SYN_6
296 #define CONN_SYN_ACK_7 CONN_SYN_ACK_6
297 #define CONN_ACK_7 CONN_ACK_6
298 #define ALIVE_SYN_7 ALIVE_SYN_6
299 #define ALIVE_ACK_7 ALIVE_ACK_6
300 #define DISCONN_SYN_7 DISCONN_SYN_6
301 #define DISCONN_SYN_ACK_7 DISCONN_SYN_ACK_6
302 #define DISCONN_ACK_7 DISCONN_ACK_6