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/natpmp.c

    r2573 r2576  
    596596    else if( TR_NET_CLOSE & res )
    597597    {
    598         if( ECONNRESET == errno || ECONNREFUSED == errno )
     598        if( ECONNRESET == sockerrno || ECONNREFUSED == sockerrno )
    599599        {
    600600            tr_dbg( "nat-pmp not supported by device" );
     
    652652
    653653    res = tr_netSend( req->fd, buf, sizeof( buf ) );
    654     if( TR_NET_CLOSE & res && EHOSTUNREACH == errno )
     654    if( TR_NET_CLOSE & res && EHOSTUNREACH == sockerrno )
    655655    {
    656656        res = TR_NET_BLOCK;
Note: See TracChangeset for help on using the changeset viewer.