Changes in protocols/proxy.c [c3ffa45:6caa56a]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/proxy.c
rc3ffa45 r6caa56a 50 50 #define GAIM_ERR_COND (G_IO_HUP | G_IO_ERR | G_IO_NVAL) 51 51 52 /*FIXME* 53 #ifndef _WIN32 54 if (getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &len) < 0) { 55 closesocket(fd); 56 g_free(phb); 57 return -1; 58 } 59 fcntl(fd, F_SETFL, 0); 60 #endif*/ 61 52 62 char proxyhost[128] = ""; 53 63 int proxyport = 0; … … 73 83 74 84 75 static struct sockaddr_in *gaim_gethostbyname(c onst char *host, int port)85 static struct sockaddr_in *gaim_gethostbyname(char *host, int port) 76 86 { 77 87 static struct sockaddr_in sin; … … 144 154 } 145 155 146 static int proxy_connect_none(c onst char *host, unsigned short port, struct PHB *phb)156 static int proxy_connect_none(char *host, unsigned short port, struct PHB *phb) 147 157 { 148 158 struct sockaddr_in *sin; … … 271 281 } 272 282 273 static int proxy_connect_http(c onst char *host, unsigned short port, struct PHB *phb)283 static int proxy_connect_http(char *host, unsigned short port, struct PHB *phb) 274 284 { 275 285 phb->host = g_strdup(host); … … 355 365 } 356 366 357 static int proxy_connect_socks4(c onst char *host, unsigned short port, struct PHB *phb)367 static int proxy_connect_socks4(char *host, unsigned short port, struct PHB *phb) 358 368 { 359 369 phb->host = g_strdup(host); … … 537 547 } 538 548 539 static int proxy_connect_socks5(c onst char *host, unsigned short port, struct PHB *phb)549 static int proxy_connect_socks5(char *host, unsigned short port, struct PHB *phb) 540 550 { 541 551 phb->host = g_strdup(host); … … 578 588 } 579 589 580 int proxy_connect(c onst char *host, int port, GaimInputFunction func, gpointer data)590 int proxy_connect(char *host, int port, GaimInputFunction func, gpointer data) 581 591 { 582 592 struct PHB *phb;
Note: See TracChangeset
for help on using the changeset viewer.