Changeset 7419 for trunk/libtransmission/handshake.c
- Timestamp:
- Dec 16, 2008, 10:08:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/handshake.c
r7404 r7419 25 25 #include "crypto.h" 26 26 #include "handshake.h" 27 #include "iobuf.h"28 27 #include "peer-io.h" 29 28 #include "peer-mgr.h" … … 1005 1004 1006 1005 static ReadState 1007 canRead( struct tr_ iobuf * iobuf, void * arg, size_t * piece )1006 canRead( struct tr_peerIo * io, void * arg, size_t * piece ) 1008 1007 { 1009 1008 tr_handshake * handshake = arg; 1010 struct evbuffer * inbuf = tr_ iobuf_input( iobuf);1009 struct evbuffer * inbuf = tr_peerIoGetReadBuffer( io ); 1011 1010 ReadState ret; 1012 1011 tr_bool readyForMore = TRUE; … … 1115 1114 1116 1115 static void 1117 gotError( struct tr_iobuf * iobufUNUSED,1118 short 1119 void 1116 gotError( tr_peerIo * io UNUSED, 1117 short what, 1118 void * arg ) 1120 1119 { 1121 1120 tr_handshake * handshake = (tr_handshake *) arg; … … 1165 1164 handshake->doneUserData = doneUserData; 1166 1165 handshake->session = tr_peerIoGetSession( io ); 1167 tr_peerIoSetTimeoutSecs( io, 15 );1168 1166 1169 1167 tr_peerIoSetIOFuncs( handshake->io, canRead, NULL, gotError, handshake );
Note: See TracChangeset
for help on using the changeset viewer.