Lines Matching refs:peer_atom

118 struct peer_atom  struct
149 static bool tr_isAtom(struct peer_atom const* atom) in tr_isAtom() argument
157 static char const* tr_atomAddrStr(struct peer_atom const* atom) in tr_atomAddrStr()
366 struct peer_atom const* a = va; in comparePeerAtomToAddress()
373 struct peer_atom const* b = vb; in compareAtomsByAddress()
401 static struct peer_atom* getExistingAtom(tr_swarm const* cswarm, tr_address const* addr) in getExistingAtom()
407 static bool peerIsInUse(tr_swarm const* cs, struct peer_atom const* atom) in peerIsInUse()
580 struct peer_atom* atom = tr_ptrArrayNth(&s->pool, i); in tr_peerMgrOnBlocklistChanged()
586 static bool isAtomBlocklisted(tr_session* session, struct peer_atom* atom) in isAtomBlocklisted()
600 static void atomSetSeedProbability(struct peer_atom* atom, int seedProbability) in atomSetSeedProbability()
618 static inline bool atomIsSeed(struct peer_atom const* atom) in atomIsSeed()
623 static void atomSetSeed(tr_swarm const* s, struct peer_atom* atom) in atomSetSeed()
637 struct peer_atom const* atom = getExistingAtom(s, addr); in tr_peerMgrPeerIsSeed()
649 struct peer_atom* atom = getExistingAtom(tor->swarm, addr); in tr_peerMgrSetUtpSupported()
659 struct peer_atom* atom = getExistingAtom(tor->swarm, addr); in tr_peerMgrSetUtpFailed()
1605 struct peer_atom* atom = peer->atom; in addStrike()
1941 struct peer_atom* a = getExistingAtom(s, addr); in ensureAtomExists()
1946 a = tr_new0(struct peer_atom, 1); in ensureAtomExists()
1985 static void createBitTorrentPeer(tr_torrent* tor, struct tr_peerIo* io, struct peer_atom* atom, tr_… in createBitTorrentPeer()
2043 struct peer_atom* atom = getExistingAtom(s, addr); in myHandshakeDoneCB()
2059 struct peer_atom* atom; in myHandshakeDoneCB()
2307 struct peer_atom const* a = *(struct peer_atom const* const*)va; in compareAtomsByUsefulness()
2308 struct peer_atom const* b = *(struct peer_atom const* const*)vb; in compareAtomsByUsefulness()
2331 static bool isAtomInteresting(tr_torrent const* tor, struct peer_atom* atom) in isAtomInteresting()
2367 struct peer_atom** atoms = NULL; in tr_peerMgrGetPeers()
2381 atoms = tr_new(struct peer_atom*, atomCount); in tr_peerMgrGetPeers()
2390 struct peer_atom** atomBase = (struct peer_atom**)tr_ptrArrayBase(&s->pool); in tr_peerMgrGetPeers()
2392 atoms = tr_new(struct peer_atom*, n); in tr_peerMgrGetPeers()
2403 qsort(atoms, atomCount, sizeof(struct peer_atom*), compareAtomsByUsefulness); in tr_peerMgrGetPeers()
2414 struct peer_atom const* atom = atoms[i]; in tr_peerMgrGetPeers()
2791 struct peer_atom const* atom = peer->atom; in tr_peerMgrPeerStats()
3173 static int getRate(tr_torrent const* tor, struct peer_atom* atom, uint64_t now) in getRate()
3242 struct peer_atom* atom = peer->atom; in rechokeUploads()
3372 struct peer_atom const* atom = peer->atom; in shouldPeerBeClosed()
3442 static int getReconnectIntervalSecs(struct peer_atom const* atom, time_t const now) in getReconnectIntervalSecs()
3506 struct peer_atom* atom = peer->atom; in removePeer()
3531 struct peer_atom* atom = peer->atom; in closePeer()
3891 struct peer_atom const* a = *(struct peer_atom const* const*)va; in compareAtomPtrsByAddress()
3892 struct peer_atom const* b = *(struct peer_atom const* const*)vb; in compareAtomPtrsByAddress()
3903 struct peer_atom const* a = *(struct peer_atom const* const*)va; in compareAtomPtrsByShelfDate()
3904 struct peer_atom const* b = *(struct peer_atom const* const*)vb; in compareAtomPtrsByShelfDate()
3957 struct peer_atom** atoms = (struct peer_atom**)tr_ptrArrayPeek(&s->pool, &atomCount); in atomPulse()
3963 struct peer_atom** keep = tr_new(struct peer_atom*, atomCount); in atomPulse()
3964 struct peer_atom** test = tr_new(struct peer_atom*, atomCount); in atomPulse()
3969 struct peer_atom* atom = atoms[i]; in atomPulse()
3986 qsort(test, testCount, sizeof(struct peer_atom*), compareAtomPtrsByShelfDate); in atomPulse()
4003 qsort(keep, keepCount, sizeof(struct peer_atom*), compareAtomPtrsByAddress); in atomPulse()
4029 static bool isPeerCandidate(tr_torrent const* tor, struct peer_atom* atom, time_t const now) in isPeerCandidate()
4068 struct peer_atom* atom;
4084 static uint64_t getPeerCandidateScore(tr_torrent const* tor, struct peer_atom const* atom, uint8_t … in getPeerCandidateScore()
4254 struct peer_atom** atoms; in getPeerCandidates()
4273 atoms = (struct peer_atom**)tr_ptrArrayPeek(&tor->swarm->pool, &nAtoms); in getPeerCandidates()
4277 struct peer_atom* atom = atoms[i]; in getPeerCandidates()
4301 static void initiateConnection(tr_peerMgr* mgr, tr_swarm* s, struct peer_atom* atom) in initiateConnection()