Mercurial > pidgin
comparison src/proxy.c @ 2940:76f84e1a3b8f
[gaim-migrate @ 2953]
Ho Hum
committer: Tailor Script <tailor@pidgin.im>
| author | Rob Flynn <gaim@robflynn.com> |
|---|---|
| date | Wed, 30 Jan 2002 02:40:59 +0000 |
| parents | 4790fb1272a1 |
| children | 778e4e27c33e |
comparison
equal
deleted
inserted
replaced
| 2939:06a61bda8173 | 2940:76f84e1a3b8f |
|---|---|
| 319 struct sockaddr_in *sin; | 319 struct sockaddr_in *sin; |
| 320 int fd = -1; | 320 int fd = -1; |
| 321 | 321 |
| 322 debug_printf("connecting to %s:%d via %s:%d using HTTP\n", host, port, proxyhost, proxyport); | 322 debug_printf("connecting to %s:%d via %s:%d using HTTP\n", host, port, proxyhost, proxyport); |
| 323 | 323 |
| 324 if (!(sin = gaim_gethostbyname(proxyhost, port))) { | 324 if (!(sin = gaim_gethostbyname(proxyhost, proxyport))) { |
| 325 g_free(phb); | 325 g_free(phb); |
| 326 return -1; | 326 return -1; |
| 327 } | 327 } |
| 328 | 328 |
| 329 if ((fd = socket(sin->sin_family, SOCK_STREAM, 0)) < 0) { | 329 if ((fd = socket(sin->sin_family, SOCK_STREAM, 0)) < 0) { |
| 438 struct sockaddr_in *sin; | 438 struct sockaddr_in *sin; |
| 439 int fd = -1; | 439 int fd = -1; |
| 440 | 440 |
| 441 debug_printf("connecting to %s:%d via %s:%d using SOCKS4\n", host, port, proxyhost, proxyport); | 441 debug_printf("connecting to %s:%d via %s:%d using SOCKS4\n", host, port, proxyhost, proxyport); |
| 442 | 442 |
| 443 if (!(sin = gaim_gethostbyname(proxyhost, port))) { | 443 if (!(sin = gaim_gethostbyname(proxyhost, proxyport))) { |
| 444 g_free(phb); | 444 g_free(phb); |
| 445 return -1; | 445 return -1; |
| 446 } | 446 } |
| 447 | 447 |
| 448 if ((fd = socket(sin->sin_family, SOCK_STREAM, 0)) < 0) { | 448 if ((fd = socket(sin->sin_family, SOCK_STREAM, 0)) < 0) { |
| 661 struct sockaddr_in *sin; | 661 struct sockaddr_in *sin; |
| 662 int fd = -1; | 662 int fd = -1; |
| 663 | 663 |
| 664 debug_printf("connecting to %s:%d via %s:%d using SOCKS5\n", host, port, proxyhost, proxyport); | 664 debug_printf("connecting to %s:%d via %s:%d using SOCKS5\n", host, port, proxyhost, proxyport); |
| 665 | 665 |
| 666 if (!(sin = gaim_gethostbyname(proxyhost, port))) { | 666 if (!(sin = gaim_gethostbyname(proxyhost, proxyport))) { |
| 667 g_free(phb); | 667 g_free(phb); |
| 668 return -1; | 668 return -1; |
| 669 } | 669 } |
| 670 | 670 |
| 671 if ((fd = socket(sin->sin_family, SOCK_STREAM, 0)) < 0) { | 671 if ((fd = socket(sin->sin_family, SOCK_STREAM, 0)) < 0) { |
