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

Method RemoteAddr

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

RemoteAddr returns peer's remote network address.

()

Source from the content-addressed store, hash-verified

460
461// RemoteAddr returns peer's remote network address.
462func (p *peer) RemoteAddr() net.Addr {
463 return p.peerConn.conn.RemoteAddr()
464}
465
466// CanSend returns true if the send queue is not full, false otherwise.
467func (p *peer) CanSend(chID byte) bool {

Callers

nothing calls this directly

Calls 1

RemoteAddrMethod · 0.65

Tested by

no test coverage detected