| 190 #define GG_MSG_OPTION_ATTRIBUTES 0x02 |
190 #define GG_MSG_OPTION_ATTRIBUTES 0x02 |
| 191 #define GG_MSG_OPTION_IMAGE_REQUEST 0x04 |
191 #define GG_MSG_OPTION_IMAGE_REQUEST 0x04 |
| 192 #define GG_MSG_OPTION_IMAGE_REPLY 0x05 |
192 #define GG_MSG_OPTION_IMAGE_REPLY 0x05 |
| 193 #define GG_MSG_OPTION_IMAGE_REPLY_MORE 0x06 |
193 #define GG_MSG_OPTION_IMAGE_REPLY_MORE 0x06 |
| 194 |
194 |
| |
195 #define GG_DCC7_ABORT 0x0025 |
| |
196 |
| |
197 struct gg_dcc7_abort { |
| |
198 gg_dcc7_id_t id; /* identyfikator połączenia */ |
| |
199 uint32_t uin_from; /* numer nadawcy */ |
| |
200 uint32_t uin_to; /* numer odbiorcy */ |
| |
201 } GG_PACKED; |
| |
202 |
| |
203 #define GG_DCC7_ABORTED 0x0025 |
| |
204 |
| |
205 struct gg_dcc7_aborted { |
| |
206 gg_dcc7_id_t id; /* identyfikator połączenia */ |
| |
207 } GG_PACKED; |
| |
208 |
| 195 #define GG_DCC7_VOICE_RETRIES 0x11 /* 17 powtorzen */ |
209 #define GG_DCC7_VOICE_RETRIES 0x11 /* 17 powtorzen */ |
| 196 |
210 |
| 197 #define GG_DCC7_RESERVED1 0xdeadc0de |
211 #define GG_DCC7_RESERVED1 0xdeadc0de |
| 198 #define GG_DCC7_RESERVED2 0xdeadbeaf |
212 #define GG_DCC7_RESERVED2 0xdeadbeaf |
| 199 |
213 |
| 275 |
289 |
| 276 struct gg_dcc7_welcome_p2p { |
290 struct gg_dcc7_welcome_p2p { |
| 277 gg_dcc7_id_t id; /* identyfikator połączenia */ |
291 gg_dcc7_id_t id; /* identyfikator połączenia */ |
| 278 } GG_PACKED; |
292 } GG_PACKED; |
| 279 |
293 |
| |
294 #define GG_TIMEOUT_DISCONNECT 5 /**< Maksymalny czas oczekiwania na rozłączenie */ |
| |
295 |
| |
296 #define GG_USERLIST100_VERSION 0x5c |
| |
297 |
| |
298 struct gg_userlist100_version { |
| |
299 uint32_t version; /* numer wersji listy kontaktów */ |
| |
300 } GG_PACKED; |
| |
301 |
| |
302 #define GG_USERLIST100_REQUEST 0x0040 |
| |
303 |
| |
304 struct gg_userlist100_request { |
| |
305 uint8_t type; /* rodzaj żądania */ |
| |
306 uint32_t version; /* numer ostatniej znanej wersji listy kontaktów bądź 0 */ |
| |
307 uint8_t format_type; /* rodzaj żądanego typu formatu listy kontaktów */ |
| |
308 uint8_t unknown1; /* 0x01 */ |
| |
309 /* char request[]; */ |
| |
310 } GG_PACKED; |
| |
311 |
| |
312 #define GG_USERLIST100_REPLY 0x41 |
| |
313 |
| |
314 struct gg_userlist100_reply { |
| |
315 uint8_t type; /* rodzaj odpowiedzi */ |
| |
316 uint32_t version; /* numer wersji listy kontaktów aktualnie przechowywanej przez serwer */ |
| |
317 uint8_t format_type; /* rodzaj przesyłanego typu formatu listy kontaktów */ |
| |
318 uint8_t unknown1; /* 0x01 */ |
| |
319 /* char reply[]; */ |
| |
320 } GG_PACKED; |
| |
321 |
| 280 #ifdef _WIN32 |
322 #ifdef _WIN32 |
| 281 #pragma pack(pop) |
323 #pragma pack(pop) |
| 282 #endif |
324 #endif |
| 283 |
325 |
| 284 #endif /* LIBGADU_PROTOCOL_H */ |
326 #endif /* LIBGADU_PROTOCOL_H */ |