Mercurial > pidgin
comparison src/proxy.h @ 4366:7ba9b56a8796
[gaim-migrate @ 4632]
Ok, so this is a patch by Nicolas Lichtmaier (niqueco). You've probably noticed
that when you try to sign an account on, the UI freezes for a while (esp. on poor
connections). This was because gethostbyname() blocks. Nicolas's patch here forks
a new process to resolve host names and returns them in a pipe. It makes things
smoother and faster. Thanks so much, Nicolas.
committer: Tailor Script <tailor@pidgin.im>
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Mon, 20 Jan 2003 19:26:56 +0000 |
| parents | 22875a399312 |
| children | d19872836812 |
comparison
equal
deleted
inserted
replaced
| 4365:6e96ced6fb78 | 4366:7ba9b56a8796 |
|---|---|
| 37 #include <winsock.h> | 37 #include <winsock.h> |
| 38 #endif | 38 #endif |
| 39 | 39 |
| 40 #include <glib.h> | 40 #include <glib.h> |
| 41 | 41 |
| 42 #define PROXY_NONE 0 | 42 typedef enum { |
| 43 #define PROXY_HTTP 1 | 43 PROXY_NONE = 0, |
| 44 #define PROXY_SOCKS4 2 | 44 PROXY_HTTP, |
| 45 #define PROXY_SOCKS5 3 | 45 PROXY_SOCKS4, |
| 46 PROXY_SOCKS5, | |
| 47 } proxytype_t; | |
| 46 | 48 |
| 47 extern char proxyhost[128]; | 49 extern char proxyhost[128]; |
| 48 extern int proxyport; | 50 extern int proxyport; |
| 49 extern int proxytype; | 51 extern proxytype_t proxytype; |
| 50 extern char proxyuser[128]; | 52 extern char proxyuser[128]; |
| 51 extern char proxypass[128]; | 53 extern char proxypass[128]; |
| 52 extern guint proxy_info_is_from_gaimrc; | 54 extern guint proxy_info_is_from_gaimrc; |
| 53 | 55 |
| 54 typedef enum { | 56 typedef enum { |
