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

Method GetHttpInfoState

p2pserver/peer/peer.go:295–297  ·  view source on GitHub ↗

GetHttpInfoState return peer`s httpinfo state

()

Source from the content-addressed store, hash-verified

293
294//GetHttpInfoState return peer`s httpinfo state
295func (this *Peer) GetHttpInfoState() bool {
296 return this.cap[common.HTTP_INFO_FLAG] == 1
297}
298
299//GetHttpInfoPort return peer`s httpinfo port
300func (this *Peer) GetHttpInfoPort() uint16 {

Callers 1

viewHandlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected