From ac7a4858efcb2c7d9777829601524fa7bfd1644b Mon Sep 17 00:00:00 2001 From: Jan Pechanec Date: Wed, 13 Dec 2017 00:34:43 +0100 Subject: [PATCH] More work on the example code. --- tcp/tcp-sink-server.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tcp/tcp-sink-server.c b/tcp/tcp-sink-server.c index 0e48c69..1b40ce1 100644 --- a/tcp/tcp-sink-server.c +++ b/tcp/tcp-sink-server.c @@ -1,9 +1,18 @@ /* - * A simple TCP sink server running on a specified port - what is sent to it is - * just printed onto stdout. No data is sent back. + * A simple TCP sink server running on a specified port - what is sent to this + * server is just printed onto stdout. No data is sent back. * * Note: this example is IPv4 only! * + * Try on a machine connected to the Internet and then point your browser to it, + * eg. start it like this: + * + * $ ./tcp-sink-server 8080 + * + * Then in your browser, put: + * + * :8080 + * * (c) jp@devnull.cz, vlada@devnull.cz */