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

Method SetPort

p2pserver/peer/peer.go:92–94  ·  view source on GitHub ↗

SetPort sets a peer's sync port

(port uint16)

Source from the content-addressed store, hash-verified

90
91// SetPort sets a peer's sync port
92func (this *PeerCom) SetPort(port uint16) {
93 this.port = port
94}
95
96// GetPort returns a peer's sync port
97func (this *PeerCom) GetPort() uint16 {

Callers 2

TestGetPeerComInfoFunction · 0.45
UpdateInfoMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestGetPeerComInfoFunction · 0.36