Ignore:
Timestamp:
Dec 22, 2008, 12:51:14 AM (12 years ago)
Author:
charles
Message:

(1.4x libT) backport handshake, peer, bandwidth, peer-io to 1.4x.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.4x/libtransmission/handshake.h

    r7175 r7455  
    11/*
    2  * This file Copyright (C) 2007-2008 Charles Kerr <charles@rebelbase.com>
     2 * This file Copyright (C) 2007-2008 Charles Kerr <charles@transmissionbt.com>
    33 *
    44 * This file is licensed by the GPL version 2.  Works owned by the
     
    1919
    2020#include "transmission.h"
     21#include "net.h"
    2122
    22 struct in_addr;
    2323struct tr_peerIo;
    2424typedef struct tr_handshake tr_handshake;
    2525
    2626/* 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 );
     27typedef tr_bool ( *handshakeDoneCB )( struct tr_handshake * handshake,
     28                                      struct tr_peerIo *    io,
     29                                      int                   isConnected,
     30                                      const uint8_t *       peerId,
     31                                      void *                userData );
    3232
    3333tr_handshake *         tr_handshakeNew( struct tr_peerIo * io,
     
    3636                                        void *             doneUserData );
    3737
    38 const struct in_addr * tr_handshakeGetAddr(
    39     const struct tr_handshake * handshake,
    40                                 uint16_t
    41     *                           setme_port );
     38const tr_address *     tr_handshakeGetAddr( const struct tr_handshake  * handshake,
     39                                            tr_port                    * port );
     40
     41void                   tr_handshakeFree( tr_handshake * handshake );
    4242
    4343void                   tr_handshakeAbort( tr_handshake * handshake );
     
    4545struct tr_peerIo*      tr_handshakeGetIO( tr_handshake * handshake );
    4646
     47struct tr_peerIo*      tr_handshakeStealIO( tr_handshake * handshake );
     48
     49
    4750#endif
Note: See TracChangeset for help on using the changeset viewer.