Changeset 7455 for branches/1.4x/libtransmission/handshake.h
- Timestamp:
- Dec 22, 2008, 12:51:14 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.4x/libtransmission/handshake.h
r7175 r7455 1 1 /* 2 * This file Copyright (C) 2007-2008 Charles Kerr <charles@ rebelbase.com>2 * This file Copyright (C) 2007-2008 Charles Kerr <charles@transmissionbt.com> 3 3 * 4 4 * This file is licensed by the GPL version 2. Works owned by the … … 19 19 20 20 #include "transmission.h" 21 #include "net.h" 21 22 22 struct in_addr;23 23 struct tr_peerIo; 24 24 typedef struct tr_handshake tr_handshake; 25 25 26 26 /* returns true on success, false on error */ 27 typedef int( *handshakeDoneCB )( struct tr_handshake * handshake,28 struct tr_peerIo * io,29 int isConnected,30 const uint8_t * peerId,31 void * userData );27 typedef tr_bool ( *handshakeDoneCB )( struct tr_handshake * handshake, 28 struct tr_peerIo * io, 29 int isConnected, 30 const uint8_t * peerId, 31 void * userData ); 32 32 33 33 tr_handshake * tr_handshakeNew( struct tr_peerIo * io, … … 36 36 void * doneUserData ); 37 37 38 const struct in_addr * tr_handshakeGetAddr(39 const struct tr_handshake * handshake,40 uint16_t 41 * setme_port);38 const tr_address * tr_handshakeGetAddr( const struct tr_handshake * handshake, 39 tr_port * port ); 40 41 void tr_handshakeFree( tr_handshake * handshake ); 42 42 43 43 void tr_handshakeAbort( tr_handshake * handshake ); … … 45 45 struct tr_peerIo* tr_handshakeGetIO( tr_handshake * handshake ); 46 46 47 struct tr_peerIo* tr_handshakeStealIO( tr_handshake * handshake ); 48 49 47 50 #endif
Note: See TracChangeset
for help on using the changeset viewer.