MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / RemoteAddr

Method RemoteAddr

p2p/peer.go:29–29  ·  view source on GitHub ↗

remote IP of the connection

()

Source from the content-addressed store, hash-verified

27 ID() ID // peer's cryptographic ID
28 RemoteIP() net.IP // remote IP of the connection
29 RemoteAddr() net.Addr // remote address of the connection
30
31 IsOutbound() bool // did we dial the peer
32 IsPersistent() bool // do we redial this peer when we disconnect

Callers 15

HasMethod · 0.65
RemoveMethod · 0.65
SetMethod · 0.65
RemoteAddrMethod · 0.65
acceptPeersMethod · 0.65
CleanupMethod · 0.65
upgradeMethod · 0.65
resolveIPsFunction · 0.65
TestPeerBasicFunction · 0.65
RemoteIPMethod · 0.65
RemoteAddrMethod · 0.65
ErrorMethod · 0.65

Implementers 5

mockPeerp2p/peer_set_test.go
Peerp2p/mocks/peer.go
Peerp2p/mock/peer.go
fuzzPeertest/fuzz/p2p/pex/reactor_receive.go
mockPeerblockchain/v2/reactor_test.go

Calls

no outgoing calls

Tested by 1

TestPeerBasicFunction · 0.52