Ignore:
Timestamp:
Sep 17, 2008, 7:44:24 PM (13 years ago)
Author:
charles
Message:

first draft at having more accurate speed controls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/handshake.c

    r6552 r6782  
    10261026    tr_handshake * handshake;
    10271027
     1028    tr_peerIoSetBandwidthUnlimited( io, TR_UP );
     1029    tr_peerIoSetBandwidthUnlimited( io, TR_DOWN );
     1030
    10281031    handshake = tr_new0( tr_handshake, 1 );
    10291032    handshake->io = io;
     
    10321035    handshake->doneCB = doneCB;
    10331036    handshake->doneUserData = doneUserData;
    1034     handshake->handle = tr_peerIoGetHandle( io );
     1037    handshake->handle = tr_peerIoGetSession( io );
    10351038    tr_peerIoSetTimeoutSecs( io, 15 );
    10361039   
     
    10531056}
    10541057
     1058struct tr_peerIo*
     1059tr_handshakeGetIO( tr_handshake * handshake )
     1060{
     1061    assert( handshake );
     1062    assert( handshake->io );
     1063
     1064    return handshake->io;
     1065}
     1066
    10551067const struct in_addr *
    10561068tr_handshakeGetAddr( const struct tr_handshake * handshake, uint16_t * port )
Note: See TracChangeset for help on using the changeset viewer.