Ignore:
Timestamp:
Dec 16, 2008, 10:08:17 PM (12 years ago)
Author:
charles
Message:

(trunk libT) really fuck up the peer i/o code. also this breaks the mac build until someone removes iobuf.c from libtransmission's list of files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/handshake.c

    r7404 r7419  
    2525#include "crypto.h"
    2626#include "handshake.h"
    27 #include "iobuf.h"
    2827#include "peer-io.h"
    2928#include "peer-mgr.h"
     
    10051004
    10061005static ReadState
    1007 canRead( struct tr_iobuf * iobuf, void * arg, size_t * piece )
     1006canRead( struct tr_peerIo * io, void * arg, size_t * piece )
    10081007{
    10091008    tr_handshake    * handshake = arg;
    1010     struct evbuffer * inbuf = tr_iobuf_input( iobuf );
     1009    struct evbuffer * inbuf = tr_peerIoGetReadBuffer( io );
    10111010    ReadState         ret;
    10121011    tr_bool           readyForMore = TRUE;
     
    11151114
    11161115static void
    1117 gotError( struct tr_iobuf  * iobuf UNUSED,
    1118           short              what,
    1119           void             * arg )
     1116gotError( tr_peerIo  * io UNUSED,
     1117          short        what,
     1118          void       * arg )
    11201119{
    11211120    tr_handshake * handshake = (tr_handshake *) arg;
     
    11651164    handshake->doneUserData = doneUserData;
    11661165    handshake->session = tr_peerIoGetSession( io );
    1167     tr_peerIoSetTimeoutSecs( io, 15 );
    11681166
    11691167    tr_peerIoSetIOFuncs( handshake->io, canRead, NULL, gotError, handshake );
Note: See TracChangeset for help on using the changeset viewer.