Mercurial > pidgin.yaz
comparison libpurple/protocols/gg/lib/libgadu.c @ 32777:e2ff2ac0e022
Gadu-Gadu: synchronize internal libgadu with upstream - second encounter. Refs #343
author | tomkiewicz@cpw.pidgin.im |
---|---|
date | Fri, 21 Oct 2011 12:48:30 +0000 |
parents | ef01f180114b |
children |
comparison
equal
deleted
inserted
replaced
32776:8c71a7e95f16 | 32777:e2ff2ac0e022 |
---|---|
27 * | 27 * |
28 * \brief Główny moduł biblioteki | 28 * \brief Główny moduł biblioteki |
29 */ | 29 */ |
30 | 30 |
31 #include <sys/types.h> | 31 #include <sys/types.h> |
32 #ifdef _WIN32 | |
33 # include <io.h> | |
34 # include <fcntl.h> | |
35 # include <errno.h> | |
36 # define SHUT_RDWR SD_BOTH | |
37 #else | |
38 # include <sys/socket.h> | |
39 # include <netinet/in.h> | |
40 # include <arpa/inet.h> | |
41 #endif | |
42 #ifdef sun | 32 #ifdef sun |
43 # include <sys/filio.h> | 33 # include <sys/filio.h> |
44 #endif | 34 #endif |
45 | 35 |
46 #include "compat.h" | 36 #include "compat.h" |
52 #include "libgadu-debug.h" | 42 #include "libgadu-debug.h" |
53 #include "session.h" | 43 #include "session.h" |
54 #include "message.h" | 44 #include "message.h" |
55 #include "deflate.h" | 45 #include "deflate.h" |
56 | 46 |
57 #ifndef _WIN32 | 47 #include <errno.h> |
58 # include <errno.h> /* on Win32 this is included above */ | |
59 # include <netdb.h> | |
60 #endif | |
61 #include <stdarg.h> | 48 #include <stdarg.h> |
62 #include <stdio.h> | 49 #include <stdio.h> |
63 #include <stdlib.h> | 50 #include <stdlib.h> |
64 #include <string.h> | 51 #include <string.h> |
65 #include <signal.h> | 52 #include <signal.h> |
70 #endif | 57 #endif |
71 #ifdef GG_CONFIG_HAVE_OPENSSL | 58 #ifdef GG_CONFIG_HAVE_OPENSSL |
72 # include <openssl/err.h> | 59 # include <openssl/err.h> |
73 # include <openssl/rand.h> | 60 # include <openssl/rand.h> |
74 #endif | 61 #endif |
62 | |
63 #define GG_LIBGADU_VERSION "1.11.0" | |
75 | 64 |
76 /** | 65 /** |
77 * Port gniazda nasłuchującego dla połączeń bezpośrednich. | 66 * Port gniazda nasłuchującego dla połączeń bezpośrednich. |
78 * | 67 * |
79 * \ingroup ip | 68 * \ingroup ip |
1117 #endif | 1106 #endif |
1118 | 1107 |
1119 sess->resolver_cleanup(&sess->resolver, 1); | 1108 sess->resolver_cleanup(&sess->resolver, 1); |
1120 | 1109 |
1121 if (sess->fd != -1) { | 1110 if (sess->fd != -1) { |
1122 shutdown(sess->fd, SHUT_RDWR); | |
1123 close(sess->fd); | 1111 close(sess->fd); |
1124 sess->fd = -1; | 1112 sess->fd = -1; |
1125 } | 1113 } |
1126 | 1114 |
1127 #ifdef GG_CONFIG_HAVE_GNUTLS | 1115 #ifdef GG_CONFIG_HAVE_GNUTLS |