Ignore:
Timestamp:
Jul 31, 2007, 4:55:47 PM (14 years ago)
Author:
charles
Message:

get the socket/net code working on win32 too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.c

    r2573 r2576  
    8181 * gethostbyname thread.
    8282 **********************************************************************/
    83 void tr_netResolveThreadInit()
     83void tr_netResolveThreadInit( void )
    8484{
    8585    resolveDie   = 0;
     
    9797 * die and clean itself up.
    9898 **********************************************************************/
    99 void tr_netResolveThreadClose()
     99void tr_netResolveThreadClose( void )
    100100{
    101101    tr_lockLock( resolveLock );
     
    290290    if( connect( s, (struct sockaddr *) &sock,
    291291                 sizeof( struct sockaddr_in ) ) < 0 &&
    292         errno != EINPROGRESS )
     292        sockerrno != EINPROGRESS )
    293293    {
    294294        tr_err( "Could not connect socket (%s)", strerror( errno ) );
     
    416416        return ret;
    417417
    418     if( errno == ENOTCONN || errno == EAGAIN || errno == EWOULDBLOCK )
     418    if( sockerrno == ENOTCONN || sockerrno == EAGAIN || sockerrno == EWOULDBLOCK )
    419419        return TR_NET_BLOCK;
    420420
     
    431431    if( ret < 0 )
    432432    {
    433         if( errno == EAGAIN || errno == EWOULDBLOCK )
     433        if( sockerrno == EAGAIN || sockerrno == EWOULDBLOCK )
    434434        {
    435435            ret = TR_NET_BLOCK;
Note: See TracChangeset for help on using the changeset viewer.