Ignore:
Timestamp:
Jun 2, 2009, 6:21:23 PM (13 years ago)
Author:
charles
Message:

(trunk libT) add a bunch of comments denoting where the libevent 2.0 changes will go

File:
1 edited

Legend:

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

    r8433 r8592  
    684684                tr_bool       isPieceData )
    685685{
     686    /* FIXME(libevent2): this implementation snould be moved to tr_peerIoWriteBuf.   This function should be implemented as evbuffer_new() + evbuffer_add_reference() + a call to tr_peerIoWriteBuf() + evbuffer_free() */
    686687    struct tr_datatype * datatype;
    687688
     
    700701        case PEER_ENCRYPTION_RC4:
    701702        {
     703            /* FIXME(libevent2): use evbuffer_reserve_space() and evbuffer_commit_space() instead of tmp */
    702704            uint8_t tmp[MAX_STACK_ARRAY_SIZE];
    703705            const uint8_t * walk = bytes;
     
    729731                   tr_bool             isPieceData )
    730732{
     733    /* FIXME(libevent2): loop through calls to evbuffer_get_contiguous_space() + evbuffer_drain() */
    731734    const size_t n = EVBUFFER_LENGTH( buf );
    732735    tr_peerIoWrite( io, EVBUFFER_DATA( buf ), n, isPieceData );
     
    745748{
    746749    assert( tr_isPeerIo( io ) );
     750    /* FIXME(libevent2): use evbuffer_get_length() */
    747751    assert( EVBUFFER_LENGTH( inbuf ) >= byteCount );
    748752
     
    754758
    755759        case PEER_ENCRYPTION_RC4:
     760            /* FIXME(libevent2): loop through calls to evbuffer_get_contiguous_space() + evbuffer_drain() */
    756761            tr_cryptoDecrypt( io->crypto, byteCount, EVBUFFER_DATA(inbuf), bytes );
    757762            evbuffer_drain(inbuf, byteCount );
Note: See TracChangeset for help on using the changeset viewer.