Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/proxy.c

    rc3ffa45 r6caa56a  
    5050#define GAIM_ERR_COND   (G_IO_HUP | G_IO_ERR | G_IO_NVAL)
    5151
     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
    5262char proxyhost[128] = "";
    5363int proxyport = 0;
     
    7383
    7484
    75 static struct sockaddr_in *gaim_gethostbyname(const char *host, int port)
     85static struct sockaddr_in *gaim_gethostbyname(char *host, int port)
    7686{
    7787        static struct sockaddr_in sin;
     
    144154}
    145155
    146 static int proxy_connect_none(const char *host, unsigned short port, struct PHB *phb)
     156static int proxy_connect_none(char *host, unsigned short port, struct PHB *phb)
    147157{
    148158        struct sockaddr_in *sin;
     
    271281}
    272282
    273 static int proxy_connect_http(const char *host, unsigned short port, struct PHB *phb)
     283static int proxy_connect_http(char *host, unsigned short port, struct PHB *phb)
    274284{
    275285        phb->host = g_strdup(host);
     
    355365}
    356366
    357 static int proxy_connect_socks4(const char *host, unsigned short port, struct PHB *phb)
     367static int proxy_connect_socks4(char *host, unsigned short port, struct PHB *phb)
    358368{
    359369        phb->host = g_strdup(host);
     
    537547}
    538548
    539 static int proxy_connect_socks5(const char *host, unsigned short port, struct PHB *phb)
     549static int proxy_connect_socks5(char *host, unsigned short port, struct PHB *phb)
    540550{
    541551        phb->host = g_strdup(host);
     
    578588}
    579589
    580 int proxy_connect(const char *host, int port, GaimInputFunction func, gpointer data)
     590int proxy_connect(char *host, int port, GaimInputFunction func, gpointer data)
    581591{
    582592        struct PHB *phb;
Note: See TracChangeset for help on using the changeset viewer.