Mercurial > pidgin.yaz
diff src/dialogs.c @ 253:5b28ef2b550e
[gaim-migrate @ 263]
A few things happened in this update:
- Commented out the libfaim deny/permit list stuff because it's seriously buggy
- Added Socks v4 support
- improved proxy support for things like getting users' info
- i think that's it
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 23 May 2000 05:26:30 +0000 |
parents | f6e8ea29b24f |
children | be4ac6d5c1b4 |
line wrap: on
line diff
--- a/src/dialogs.c Mon May 22 23:58:03 2000 +0000 +++ b/src/dialogs.c Tue May 23 05:26:30 2000 +0000 @@ -162,8 +162,7 @@ { static char email_data[2000]; int sock; - struct hostent *host; - struct sockaddr_in site; + struct in_addr *host; /* char data[3]; */ FILE *sockfile; char uname_output; @@ -189,25 +188,14 @@ system(buf); } - host = gethostbyname(REG_SRVR); + host = (struct in_addr *)get_address(REG_SRVR); if (!host) { printf("Error Resolving Mail Server.\n"); return -1; } - site.sin_family = AF_INET; - site.sin_addr.s_addr = *(long *)(host->h_addr); - site.sin_port = htons(REG_PORT); - - sock = socket(AF_INET, SOCK_STREAM, 0); - if (sock < 0) - { - printf("Socket Error.\n"); - return -1; - } - - if (connect(sock, (struct sockaddr *)&site, sizeof(site))) + if ((sock = connect_address(host->s_addr, REG_PORT)) < 0) { printf("Error Connecting to Socket.\n"); return -1;