Mercurial > pidgin.yaz
comparison libpurple/protocols/gg/lib/resolver.c @ 32764:ef01f180114b
Gadu-Gadu: synchronize internal libgadu with upstream. Refs #343
author | tomkiewicz@cpw.pidgin.im |
---|---|
date | Tue, 18 Oct 2011 00:55:59 +0000 |
parents | 326591e64aaa |
children | e2ff2ac0e022 |
comparison
equal
deleted
inserted
replaced
32763:326591e64aaa | 32764:ef01f180114b |
---|---|
39 # include <netinet/in.h> | 39 # include <netinet/in.h> |
40 # include <arpa/inet.h> | 40 # include <arpa/inet.h> |
41 #endif | 41 #endif |
42 | 42 |
43 #include "libgadu.h" | 43 #include "libgadu.h" |
44 #include "libgadu-config.h" | |
45 #include "resolver.h" | 44 #include "resolver.h" |
46 #include "compat.h" | 45 #include "compat.h" |
47 #include "session.h" | 46 #include "session.h" |
48 | 47 |
49 /** Sposób rozwiązywania nazw serwerów */ | 48 /** Sposób rozwiązywania nazw serwerów */ |
247 | 246 |
248 return 0; | 247 return 0; |
249 #endif /* GG_CONFIG_HAVE_GETHOSTBYNAME_R */ | 248 #endif /* GG_CONFIG_HAVE_GETHOSTBYNAME_R */ |
250 } | 249 } |
251 | 250 |
252 #if defined(GG_CONFIG_HAVE_PTHREAD) || !defined(_WIN32) | 251 #if defined(GG_CONFIG_HAVE_PTHREAD) || defined(GG_CONFIG_HAVE_FORK) |
253 /** | 252 /** |
254 * \internal Rozwiązuje nazwę i zapisuje wynik do podanego desktyptora. | 253 * \internal Rozwiązuje nazwę i zapisuje wynik do podanego desktyptora. |
255 * | 254 * |
256 * \param fd Deskryptor | 255 * \param fd Deskryptor |
257 * \param hostname Nazwa serwera | 256 * \param hostname Nazwa serwera |
317 */ | 316 */ |
318 struct gg_resolver_fork_data { | 317 struct gg_resolver_fork_data { |
319 int pid; /*< Identyfikator procesu */ | 318 int pid; /*< Identyfikator procesu */ |
320 }; | 319 }; |
321 | 320 |
322 #ifndef _WIN32 | 321 #ifdef GG_CONFIG_HAVE_FORK |
323 /** | 322 /** |
324 * \internal Rozwiązuje nazwę serwera w osobnym procesie. | 323 * \internal Rozwiązuje nazwę serwera w osobnym procesie. |
325 * | 324 * |
326 * Połączenia asynchroniczne nie mogą blokować procesu w trakcie rozwiązywania | 325 * Połączenia asynchroniczne nie mogą blokować procesu w trakcie rozwiązywania |
327 * nazwy serwera. W tym celu tworzony jest potok, nowy proces i dopiero w nim | 326 * nazwy serwera. W tym celu tworzony jest potok, nowy proces i dopiero w nim |