MCPcopy Create free account
hub / github.com/DNAProject/DNA / IsAddrInOutConnRecord

Method IsAddrInOutConnRecord

p2pserver/net/netserver/netserver.go:588–592  ·  view source on GitHub ↗

IsAddrInOutConnRecord return result whether addr is in outConnRecord

(addr string)

Source from the content-addressed store, hash-verified

586
587//IsAddrInOutConnRecord return result whether addr is in outConnRecord
588func (this *NetServer) IsAddrInOutConnRecord(addr string) bool {
589 this.outConnRecord.RLock()
590 defer this.outConnRecord.RUnlock()
591 return this.outConnRecord.OutConnectingAddrs.Has(addr)
592}
593
594//RemoveOutConnRecord remove out connection from outConnRecord
595func (this *NetServer) RemoveFromOutConnRecord(addr string) {

Callers 2

ConnectMethod · 0.95
TestOutConnAPIFunction · 0.80

Calls 1

HasMethod · 0.65

Tested by 1

TestOutConnAPIFunction · 0.64