Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultMeshPort = 9090 BroadcastAddr = "255.255.255.255:9090" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeMesh ¶
type NodeMesh struct {
// contains filtered or unexported fields
}
func NewNodeMesh ¶
NewNodeMesh initializes the UDP socket for local subnet broadcast/multicast
func (*NodeMesh) BroadcastGossip ¶
func (m *NodeMesh) BroadcastGossip(env *uil.UILEnvelope) error
BroadcastGossip sends a UILEnvelope pointer to all subnet peers
func (*NodeMesh) GetActivePeers ¶
GetActivePeers returns a snapshot of discovered nodes
Click to show internal directories.
Click to hide internal directories.