Lines Matching refs:pex
21 #include "peer-mgr.h" /* pex */
94 tr_pex * pex;
96 count = tr_peerMgrGetPeers( (tr_torrent*) tor, &pex, TR_AF_INET, TR_PEERS_INTERESTING, MAX_REMEMBERED_PEERS );
98 tr_bencDictAddRaw( dict, KEY_PEERS, pex, sizeof( tr_pex ) * count );
99 tr_free( pex );
101 count = tr_peerMgrGetPeers( (tr_torrent*) tor, &pex, TR_AF_INET6, TR_PEERS_INTERESTING, MAX_REMEMBERED_PEERS );
103 tr_bencDictAddRaw( dict, KEY_PEERS6, pex, sizeof( tr_pex ) * count );
105 tr_free( pex );
117 tr_pex pex;
118 memcpy( &pex, buf + ( i * sizeof( tr_pex ) ), sizeof( tr_pex ) );
119 if( tr_isPex( &pex ) )
121 tr_peerMgrAddPex( tor, TR_PEER_FROM_RESUME, &pex, -1 );