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

Method GetPort

p2pserver/peer/peer.go:198–200  ·  view source on GitHub ↗

GetPort return peer`s sync port

()

Source from the content-addressed store, hash-verified

196
197//GetPort return peer`s sync port
198func (this *Peer) GetPort() uint16 {
199 return this.Link.GetPort()
200}
201
202//SendTo call sync link to send buffer
203func (this *Peer) SendRaw(msgType string, msgPayload []byte) error {

Callers 1

DumpInfoMethod · 0.95

Calls 1

GetPortMethod · 0.65

Tested by

no test coverage detected