Changeset 3165


Ignore:
Timestamp:
Sep 25, 2007, 5:44:50 PM (15 years ago)
Author:
charles
Message:

when a peer tells us that it's switched listening ports, remember the new port for the next time we connect.

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-msgs.c

    r3163 r3165  
    128128
    129129    uint8_t ut_pex_id;
    130     uint16_t listeningPort;
    131130
    132131    uint16_t pexCount;
     
    519518    sub = tr_bencDictFind( &val, "p" );
    520519    if( tr_bencIsInt( sub ) ) {
    521         msgs->listeningPort = htons( (uint16_t)sub->val.i );
    522         dbgmsg( msgs, "msgs->port is now %hu", msgs->listeningPort );
     520        msgs->info->port = htons( (uint16_t)sub->val.i );
     521        dbgmsg( msgs, "msgs->port is now %hu", msgs->info->port );
    523522    }
    524523
     
    742741            assert( msglen == 2 );
    743742            dbgmsg( msgs, "peer sent us a BT_PORT" );
    744             tr_peerIoReadUint16( msgs->io, inbuf, &msgs->listeningPort );
     743            tr_peerIoReadUint16( msgs->io, inbuf, &msgs->info->port );
    745744            break;
    746745        }
  • trunk/libtransmission/shared.c

    r3121 r3165  
    9494void tr_sharedClose( tr_shared * s )
    9595{
    96 fprintf( stderr, "deleting pulse tag\n" );
    9796    tr_timerFree( &s->pulseTimer );
    9897
Note: See TracChangeset for help on using the changeset viewer.