Changeset devel,69
- Timestamp:
- 2005-12-06T21:55:09Z (5 years ago)
- branch-nick:
- jelmer.integration
- revision id:
- jelmer@samba.org-20051206215509-a5e71bd6872fbb99
- Location:
- devel/protocols
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
devel/protocols/proxy.c
r52 r69 50 50 #define GAIM_ERR_COND (G_IO_HUP | G_IO_ERR | G_IO_NVAL) 51 51 52 /*FIXME*53 #ifndef _WIN3254 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 62 52 char proxyhost[128] = ""; 63 53 int proxyport = 0; … … 83 73 84 74 85 static struct sockaddr_in *gaim_gethostbyname(c har *host, int port)75 static struct sockaddr_in *gaim_gethostbyname(const char *host, int port) 86 76 { 87 77 static struct sockaddr_in sin; … … 154 144 } 155 145 156 static int proxy_connect_none(c har *host, unsigned short port, struct PHB *phb)146 static int proxy_connect_none(const char *host, unsigned short port, struct PHB *phb) 157 147 { 158 148 struct sockaddr_in *sin; … … 281 271 } 282 272 283 static int proxy_connect_http(c har *host, unsigned short port, struct PHB *phb)273 static int proxy_connect_http(const char *host, unsigned short port, struct PHB *phb) 284 274 { 285 275 phb->host = g_strdup(host); … … 365 355 } 366 356 367 static int proxy_connect_socks4(c har *host, unsigned short port, struct PHB *phb)357 static int proxy_connect_socks4(const char *host, unsigned short port, struct PHB *phb) 368 358 { 369 359 phb->host = g_strdup(host); … … 547 537 } 548 538 549 static int proxy_connect_socks5(c har *host, unsigned short port, struct PHB *phb)539 static int proxy_connect_socks5(const char *host, unsigned short port, struct PHB *phb) 550 540 { 551 541 phb->host = g_strdup(host); … … 588 578 } 589 579 590 int proxy_connect(c har *host, int port, GaimInputFunction func, gpointer data)580 int proxy_connect(const char *host, int port, GaimInputFunction func, gpointer data) 591 581 { 592 582 struct PHB *phb; -
devel/protocols/proxy.h
r1 r69 56 56 G_MODULE_EXPORT void gaim_input_remove(gint); 57 57 58 G_MODULE_EXPORT int proxy_connect(c har *host, int port, GaimInputFunction func, gpointer data);58 G_MODULE_EXPORT int proxy_connect(const char *host, int port, GaimInputFunction func, gpointer data); 59 59 60 60 #endif /* _PROXY_H_ */
