Home
last modified time | relevance | path

Searched refs:PeerInfo (Results 1 – 25 of 477) sorted by relevance

12345678910>>...20

/dports/net-p2p/qbittorrent/qbittorrent-4.3.9/src/base/bittorrent/
H A Dpeerinfo.cpp40 PeerInfo::PeerInfo(const Torrent *torrent, const lt::peer_info &nativeInfo) in PeerInfo() function in PeerInfo
47 bool PeerInfo::fromDHT() const in fromDHT()
52 bool PeerInfo::fromPeX() const in fromPeX()
57 bool PeerInfo::fromLSD() const in fromLSD()
62 QString PeerInfo::country() const in country()
74 bool PeerInfo::isChocked() const in isChocked()
114 bool PeerInfo::isSeed() const in isSeed()
124 bool PeerInfo::isSnubbed() const in isSnubbed()
178 QString PeerInfo::client() const in client()
183 qreal PeerInfo::progress() const in progress()
[all …]
H A Dpeerinfo.h42 class PeerInfo
44 Q_DECLARE_TR_FUNCTIONS(PeerInfo)
47 PeerInfo() = default;
48 PeerInfo(const Torrent *torrent, const lt::peer_info &nativeInfo);
/dports/net-im/dendrite/dendrite-0.5.1/vendor/github.com/libp2p/go-libp2p-kbucket/
H A Dbucket_test.go16 require.Nil(t, b.min(func(p1 *PeerInfo, p2 *PeerInfo) bool { return true }))
24 require.Equal(t, pid1, b.min(func(first *PeerInfo, second *PeerInfo) bool {
30 require.Equal(t, pid1, b.min(func(first *PeerInfo, second *PeerInfo) bool {
36 require.Equal(t, pid3, b.min(func(first *PeerInfo, second *PeerInfo) bool {
46 b.updateAllWith(func(p *PeerInfo) {})
53 b.pushFront(&PeerInfo{Id: pid1, replaceable: false})
54 b.updateAllWith(func(p *PeerInfo) {
60 b.pushFront(&PeerInfo{Id: pid2, replaceable: false})
61 b.updateAllWith(func(p *PeerInfo) {
72 b.pushFront(&PeerInfo{Id: pid3, replaceable: false})
[all …]
H A Dbucket.go13 type PeerInfo struct { struct
51 func (b *bucket) peers() []PeerInfo {
52 ps := make([]PeerInfo, 0, b.len())
54 p := e.Value.(*PeerInfo)
64 func (b *bucket) min(lessThan func(p1 *PeerInfo, p2 *PeerInfo) bool) *PeerInfo {
72 val := e.Value.(*PeerInfo)
85 val := e.Value.(*PeerInfo)
94 p := e.Value.(*PeerInfo)
104 if e.Value.(*PeerInfo).Id == p {
105 return e.Value.(*PeerInfo)
[all …]
/dports/net-p2p/libtorrent/libtorrent-0.13.8/src/protocol/
H A Dinitial_seed.cc50 PeerInfo* const InitialSeeding::chunk_unsent = (PeerInfo*) 0;
51 PeerInfo* const InitialSeeding::chunk_unknown = (PeerInfo*) 1;
52 PeerInfo* const InitialSeeding::chunk_done = (PeerInfo*) 2;
58 m_peerChunks(new PeerInfo*[m_chunksLeft]) { in InitialSeeding()
69 InitialSeeding::valid_peer(PeerInfo* peer) { in valid_peer()
74 InitialSeeding::clear_peer(PeerInfo* peer) { in clear_peer()
78 peer->unset_flags(PeerInfo::flag_blocked); in clear_peer()
93 PeerInfo* peer = pcb->mutable_peer_info(); in chunk_seen()
94 PeerInfo* old = m_peerChunks[index]; in chunk_seen()
126 PeerInfo* peer = pcb->mutable_peer_info(); in new_peer()
[all …]
H A Dinitial_seed.h64 static PeerInfo* const chunk_unsent; // Chunk never sent to anyone.
65 static PeerInfo* const chunk_unknown; // Peer has chunk, we don't know who we sent it to.
66 static PeerInfo* const chunk_done; // Chunk properly distributed by peer.
70 bool valid_peer(PeerInfo* peer);
71 void clear_peer(PeerInfo* peer);
80 PeerInfo** m_peerChunks;
H A Dpeer_chunks.h51 class PeerInfo; variable
61 PeerInfo* peer_info() { return m_peerInfo; } in peer_info()
62 const PeerInfo* peer_info() const { return m_peerInfo; } in peer_info()
63 void set_peer_info(PeerInfo* p) { m_peerInfo = p; } in set_peer_info()
91 PeerInfo* m_peerInfo;
/dports/net-p2p/go-ethereum/go-ethereum-1.10.14/vendor/github.com/status-im/keycard-go/vendor/github.com/ethereum/go-ethereum/mobile/
H A Dp2p.go48 type PeerInfo struct { struct
49 info *p2p.PeerInfo argument
52 func (pi *PeerInfo) GetID() string { return pi.info.ID } argument
53 func (pi *PeerInfo) GetName() string { return pi.info.Name } argument
54 func (pi *PeerInfo) GetCaps() *Strings { return &Strings{pi.info.Caps} } argument
55 func (pi *PeerInfo) GetLocalAddress() string { return pi.info.Network.LocalAddress } argument
56 func (pi *PeerInfo) GetRemoteAddress() string { return pi.info.Network.RemoteAddress } argument
60 infos []*p2p.PeerInfo
69 func (pi *PeerInfos) Get(index int) (info *PeerInfo, _ error) {
73 return &PeerInfo{pi.infos[index]}, nil
/dports/net-p2p/go-ethereum/go-ethereum-1.10.14/mobile/
H A Dp2p.go48 type PeerInfo struct { struct
49 info *p2p.PeerInfo argument
52 func (pi *PeerInfo) GetID() string { return pi.info.ID } argument
53 func (pi *PeerInfo) GetName() string { return pi.info.Name } argument
54 func (pi *PeerInfo) GetCaps() *Strings { return &Strings{pi.info.Caps} } argument
55 func (pi *PeerInfo) GetLocalAddress() string { return pi.info.Network.LocalAddress } argument
56 func (pi *PeerInfo) GetRemoteAddress() string { return pi.info.Network.RemoteAddress } argument
60 infos []*p2p.PeerInfo
69 func (pi *PeerInfos) Get(index int) (info *PeerInfo, _ error) {
73 return &PeerInfo{pi.infos[index]}, nil
/dports/net-p2p/libtorrent/libtorrent-0.13.8/src/torrent/data/
H A Dblock.h71 …bool is_peer_queued(const PeerInfo* p) const { return find_queued(p) != … in is_peer_queued()
93 BlockTransfer* find(const PeerInfo* p);
94 const BlockTransfer* find(const PeerInfo* p) const;
96 BlockTransfer* find_queued(const PeerInfo* p);
97 const BlockTransfer* find_queued(const PeerInfo* p) const;
99 BlockTransfer* find_transfer(const PeerInfo* p);
100 const BlockTransfer* find_transfer(const PeerInfo* p) const;
104 BlockTransfer* insert(PeerInfo* peerInfo);
122 …static void create_dummy(BlockTransfer* transfer, PeerInfo* peerInfo, const Piece& p…
160 Block::find(const PeerInfo* p) { in find()
[all …]
/dports/net/ooni-probe-cli/probe-cli-3.10.1/vendor/golang.org/x/tools/internal/lsp/lsprpc/
H A Dmiddleware.go21 type PeerInfo struct { struct
46 peers map[int64]PeerInfo
51 func (h *Handshaker) Peers() []PeerInfo {
55 var c []PeerInfo
72 info := &PeerInfo{
81 var peerInfo PeerInfo
105 info := &PeerInfo{
111 var serverInfo PeerInfo
138 func (h *Handshaker) recordPeer(info PeerInfo) {
142 h.peers = make(map[int64]PeerInfo)
/dports/security/xray-core/Xray-core-1.5.0/vendor/golang.org/x/tools/internal/lsp/lsprpc/
H A Dmiddleware.go21 type PeerInfo struct { struct
46 peers map[int64]PeerInfo
51 func (h *Handshaker) Peers() []PeerInfo {
55 var c []PeerInfo
72 info := &PeerInfo{
81 var peerInfo PeerInfo
105 info := &PeerInfo{
111 var serverInfo PeerInfo
138 func (h *Handshaker) recordPeer(info PeerInfo) {
142 h.peers = make(map[int64]PeerInfo)
/dports/net-mgmt/prometheus2/prometheus-2.30.3/vendor/golang.org/x/tools/internal/lsp/lsprpc/
H A Dmiddleware.go21 type PeerInfo struct { struct
46 peers map[int64]PeerInfo
51 func (h *Handshaker) Peers() []PeerInfo {
55 var c []PeerInfo
72 info := &PeerInfo{
81 var peerInfo PeerInfo
105 info := &PeerInfo{
111 var serverInfo PeerInfo
138 func (h *Handshaker) recordPeer(info PeerInfo) {
142 h.peers = make(map[int64]PeerInfo)
/dports/www/grafana8/grafana-8.3.6/vendor/golang.org/x/tools/internal/lsp/lsprpc/
H A Dmiddleware.go21 type PeerInfo struct { struct
46 peers map[int64]PeerInfo
51 func (h *Handshaker) Peers() []PeerInfo {
55 var c []PeerInfo
72 info := &PeerInfo{
81 var peerInfo PeerInfo
105 info := &PeerInfo{
111 var serverInfo PeerInfo
138 func (h *Handshaker) recordPeer(info PeerInfo) {
142 h.peers = make(map[int64]PeerInfo)
/dports/net-im/dendrite/dendrite-0.5.1/vendor/github.com/matrix-org/go-http-js-libp2p/
H A Dp2pLocalNode.go30 handlePeerDiscover func(*PeerInfo)
31 handlePeerConnect func(*PeerInfo)
32 handlePeerDisconnect func(*PeerInfo)
33 handleFoundProviders func([]PeerInfo)
104 peerInfos := make([]PeerInfo, jsProviders.Length())
116 func (pn *P2pLocalNode) RegisterPeerDiscover(handler func(*PeerInfo)) {
120 func (pn *P2pLocalNode) RegisterPeerConnect(handler func(*PeerInfo)) {
124 func (pn *P2pLocalNode) RegisterPeerDisconnect(handler func(*PeerInfo)) {
128 func (pn *P2pLocalNode) RegisterFoundProviders(handler func([]PeerInfo)) {
H A DpeerInfo.go20 type PeerInfo struct { struct
25 func NewPeerInfo(jsPeerInfo js.Value) *PeerInfo {
26 pi := &PeerInfo{
/dports/net-p2p/libtorrent/libtorrent-0.13.8/src/torrent/peer/
H A Dpeer_list.cc122 PeerInfo*
147 PeerInfo* peerInfo = new PeerInfo(sa); in insert_address()
222 PeerInfo* peerInfo = range.first->second; in insert_available()
262 PeerInfo*
280 if ((filter_value & PeerInfo::flag_unwanted)) { in connected()
291 PeerInfo* peerInfo; in connected()
296 peerInfo = new PeerInfo(sa); in connected()
329 peerInfo->set_flags(PeerInfo::flag_incoming); in connected()
333 peerInfo->set_flags(PeerInfo::flag_connected); in connected()
342 PeerList::disconnected(PeerInfo* p, int flags) { in disconnected()
[all …]
H A Dpeer_info.h46 class LIBTORRENT_EXPORT PeerInfo {
65 PeerInfo(const sockaddr* address);
66 ~PeerInfo();
126 PeerInfo(const PeerInfo&);
127 void operator = (const PeerInfo&);
153 PeerInfo::inc_transfer_counter() { in inc_transfer_counter()
161 PeerInfo::dec_transfer_counter() { in dec_transfer_counter()
H A Dpeer_info.cc54 PeerInfo::PeerInfo(const sockaddr* address) : in PeerInfo() function in torrent::PeerInfo
71 PeerInfo::~PeerInfo() { in ~PeerInfo()
84 PeerInfo::set_port(uint16_t port) { in set_port()
H A Dpeer_list.h51 class LIBTORRENT_EXPORT PeerList : private std::multimap<socket_address_key, PeerInfo*> {
58 typedef std::multimap<socket_address_key, PeerInfo*> base_type;
91 PeerInfo* insert_address(const sockaddr* address, int flags);
113 PeerInfo* connected(const sockaddr* sa, int flags) LIBTORRENT_NO_EXPORT;
115 void disconnected(PeerInfo* p, int flags) LIBTORRENT_NO_EXPORT;
/dports/games/stuntrally/stuntrally-2.6.1/source/network/
H A Dgameclient.cpp65 PeerInfo pi; in sendMessage()
102 PeerInfo& pi = it->second; in startGame()
195 { PeerInfo& pi = it->second; in senderThread()
202 pi.connection = PeerInfo::CONNECTING; in senderThread()
255 return PeerInfo(); in getPeer()
324 pi.connection = PeerInfo::CONNECTED; in connectionEvent()
339 PeerInfo picopy; in disconnectEvent()
343 picopy.connection = PeerInfo::DISCONNECTED; in disconnectEvent()
412 PeerInfo picopy = pi; in receiveEvent()
443 PeerInfo picopy = pi; in receiveEvent()
[all …]
H A Dnetworkcallbacks.hpp34 virtual void peerConnected(PeerInfo peer) {} in peerConnected()
38 virtual void peerDisconnected(PeerInfo peer) {} in peerDisconnected()
42 virtual void peerInfo(PeerInfo peer) {} in peerInfo()
47 virtual void peerMessage(PeerInfo peer, std::string msg) {} in peerMessage()
52 virtual void peerState(PeerInfo peer, uint8_t state) {} in peerState()
/dports/games/lwjgl/lwjgl-2df01dd/src/java/org/lwjgl/opengl/
H A DDisplayImplementation.java111 PeerInfo createPeerInfo(PixelFormat pixel_format, ContextAttribs attribs) throws LWJGLException; in createPeerInfo()
134 boolean isBufferLost(PeerInfo handle); in isBufferLost()
139 PeerInfo createPbuffer(int width, int height, PixelFormat pixel_format, ContextAttribs attribs, in createPbuffer()
143 void setPbufferAttrib(PeerInfo handle, int attrib, int value); in setPbufferAttrib()
145 void bindTexImageToPbuffer(PeerInfo handle, int buffer); in bindTexImageToPbuffer()
147 void releaseTexImageFromPbuffer(PeerInfo handle, int buffer); in releaseTexImageFromPbuffer()
H A DLinuxContextImplementation.java46 …public ByteBuffer create(PeerInfo peer_info, IntBuffer attribs, ByteBuffer shared_context_handle) … in create()
74 PeerInfo current_peer_info = current_context.getPeerInfo(); in swapBuffers()
96 PeerInfo current_peer_info = current_context.getPeerInfo(); in releaseCurrentContext()
116 public void makeCurrent(PeerInfo peer_info, ByteBuffer handle) throws LWJGLException { in makeCurrent()
150 PeerInfo peer_info = current_context.getPeerInfo(); in setSwapInterval()
172 public void destroy(PeerInfo peer_info, ByteBuffer handle) throws LWJGLException { in destroy()
/dports/devel/rpc2/rpc2-2.14/rpc2-src/
H A Dsftp6.c123 RPC2_PeerInfo *PeerInfo; variable
134 PeerInfo = &mse->PInfo;
135 memset(PeerInfo, 0, sizeof(RPC2_PeerInfo));
136 PeerInfo->RemoteSubsys.Tag = RPC2_DUMMYSUBSYS;
137 PeerInfo->RemoteHandle = me->MgroupID;
138 PeerInfo->RemoteHost.Tag = RPC2_DUMMYHOST; /* was INADDR_ANY:2432 */
139 PeerInfo->Uniquefier = 0; /* not used */

12345678910>>...20