Ignore:
Timestamp:
Aug 2, 2007, 11:33:40 PM (14 years ago)
Author:
charles
Message:

More win32 portability fixes. we now talk to tracker & peers; hash checks work, downloads seem to work. w00t

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.c

    r2593 r2596  
    307307    sock.sin_port        = port;
    308308
    309     if( connect( s, (struct sockaddr *) &sock,
    310                  sizeof( struct sockaddr_in ) ) < 0 &&
    311         sockerrno != EINPROGRESS )
     309    if( ( connect( s, (struct sockaddr *) &sock,
     310                   sizeof( struct sockaddr_in ) ) < 0 )
     311#ifdef WIN32
     312        && ( sockerrno != WSAEWOULDBLOCK )
     313#endif
     314        && ( sockerrno != EINPROGRESS ) )
    312315    {
    313316        tr_err( "Couldn't connect socket (%s)", strerror( sockerrno ) );
Note: See TracChangeset for help on using the changeset viewer.