Ignore:
Timestamp:
Jan 12, 2006, 7:12:58 PM (16 years ago)
Author:
root
Message:

Update 2006-01-11

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tracker.c

    r20 r26  
    5050    int            size;
    5151    int            pos;
     52
     53    int            bindPort;
    5254};
    5355
     
    7274    tc->buf      = malloc( tc->size );
    7375
     76    tc->bindPort = h->bindPort;
     77
    7478    return tc;
    7579}
     
    116120
    117121    return 0;
     122}
     123
     124void tr_trackerChangePort( tr_tracker_t * tc, int port )
     125{
     126    /* XXX this doesn't always work, should send stopped then started events */
     127    tc->bindPort = port;
    118128}
    119129
     
    265275            "Connection: close\r\n\r\n",
    266276            inf->trackerAnnounce, tor->hashString, tc->id,
    267             tor->bindPort, tor->uploaded[9], tor->downloaded[9],
     277            tc->bindPort, tor->uploaded[9], tor->downloaded[9],
    268278            left, tor->key, event, inf->trackerAddress,
    269279            VERSION_MAJOR, VERSION_MINOR );
     
    451461            memcpy( &port, &bePeers->val.s.s[6*i+4], 2 );
    452462
    453             tr_peerAddCompact( tor, addr, port, -1 );
     463            tr_peerAddCompact( tor, addr, port );
    454464        }
    455465
Note: See TracChangeset for help on using the changeset viewer.