part2

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: 6 Imported by: 0

Documentation

Overview

This program extends part 1.

It makes a connection the host and port specified by the -dial flag, reads lines from standard input and writes JSON-encoded messages to the network connection.

You can test this program by installing and running the dump program:

$ go get github.com/sbinet/whispering-gophers/util/dump
$ dump -listen=localhost:8000

And in another terminal session, run this program:

$ part2 -dial=localhost:8000

Lines typed in the second terminal should appear as JSON objects in the first terminal.

Jump to

Keyboard shortcuts

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