Documentation ¶
Overview ¶
This program listens on the host and port specified by the -listen flag. For each incoming connection, it launches a goroutine that reads and decodes JSON-encoded messages from the connection and prints them to standard output.
You can test this program by running it in one terminal:
$ part3 -listen=localhost:8000
And running part2 in another terminal:
$ part2 -dial=localhost:8000
Lines typed in the second terminal should appear as JSON objects in the first terminal.
Click to show internal directories.
Click to hide internal directories.