wire

package
v0.0.1-alpha.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package wire implements the network level.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Broadcast

func Broadcast(ctx context.Context, wg *sync.WaitGroup, pl *peer.List, global bool)

Broadcast starts broadcasting to pl UDP messages it accepts on the UDP port for as long as ctx is not done.

When ctx is done and the broadcasting has stopped, Done will be called on wg.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL