part09

command
v0.0.0-...-3215db2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

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