comparison src/protocols/msn/servconn.c @ 9198:ab6636c5a136

[gaim-migrate @ 9993] Updated all the copyright headers for all the *.[ch] files -- all 63. No fun, but I receive great satisfaction in knowing that you all have to recompile this, again. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 06 Jun 2004 03:42:55 +0000
parents 502707ca1836
children ecf3ce2e2ab1
comparison
equal deleted inserted replaced
9197:ec417d2f9666 9198:ab6636c5a136
1 /** 1 /**
2 * @file servconn.c Server connection functions 2 * @file servconn.c Server connection functions
3 * 3 *
4 * gaim 4 * gaim
5 * 5 *
6 * Copyright (C) 2003-2004 Christian Hammond <chipx86@gnupdate.org> 6 * Gaim is the legal property of its developers, whose names are too numerous
7 * to list here. Please refer to the COPYRIGHT file distributed with this
8 * source distribution.
7 * 9 *
8 * This program is free software; you can redistribute it and/or modify 10 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by 11 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or 12 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version. 13 * (at your option) any later version.
32 char *tmp; 34 char *tmp;
33 char *cmd; 35 char *cmd;
34 36
35 const char *names[] = { "Notification", "Switchboard" }; 37 const char *names[] = { "Notification", "Switchboard" };
36 const char *name; 38 const char *name;
37 39
38 gc = gaim_account_get_connection(servconn->session->account); 40 gc = gaim_account_get_connection(servconn->session->account);
39 name = names[servconn->type]; 41 name = names[servconn->type];
40 42
41 switch (servconn->cmdproc->error) 43 switch (servconn->cmdproc->error)
42 { 44 {
168 170
169 if (session->http_method) 171 if (session->http_method)
170 { 172 {
171 if (servconn->http_data->gateway_host != NULL) 173 if (servconn->http_data->gateway_host != NULL)
172 g_free(servconn->http_data->gateway_host); 174 g_free(servconn->http_data->gateway_host);
173 175
174 servconn->http_data->gateway_host = g_strdup(host); 176 servconn->http_data->gateway_host = g_strdup(host);
175 } 177 }
176 178
177 r = gaim_proxy_connect(session->account, host, port, connect_cb, 179 r = gaim_proxy_connect(session->account, host, port, connect_cb,
178 servconn); 180 servconn);
464 if (getaddrinfo(NULL, port_str, &hints, &res) != 0) 466 if (getaddrinfo(NULL, port_str, &hints, &res) != 0)
465 { 467 {
466 gaim_debug_error("msn", "Could not get address info: %s.\n", 468 gaim_debug_error("msn", "Could not get address info: %s.\n",
467 port_str); 469 port_str);
468 return -1; 470 return -1;
469 } 471 }
470 472
471 for (c = res; c != NULL; c = c->ai_next) 473 for (c = res; c != NULL; c = c->ai_next)
472 { 474 {
473 fd = socket(c->ai_family, c->ai_socktype, c->ai_protocol); 475 fd = socket(c->ai_family, c->ai_socktype, c->ai_protocol);
474 476
475 if (fd < 0) 477 if (fd < 0)
476 continue; 478 continue;
477 479