part9

command
v0.0.0-...-e25c270 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Skeleton to part 9 of the Whispering Gophers code lab.

This program extends part 8.

It connects to the peer specified by -peer. It accepts connections from peers and receives messages from them. When it sees a peer with an address it hasn't seen before, it makes a connection to that peer. It adds an ID field containing a random string to each outgoing message. When it recevies a message with an ID it hasn't seen before, it broadcasts that message to all connected peers.

Jump to

Keyboard shortcuts

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