X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Fttt-server.c;h=23fd138cb375d24f611eb85b45bc7d0460267f1e;hp=7ffbfc5f15e71a452680af33927d9221d09914d1;hb=f2187ebd49f78b84bd2dca6172abc81e54dda199;hpb=b18c78a24034922e7b9152a03683cf930d703dd0 diff --git a/src/ttt-server.c b/src/ttt-server.c index 7ffbfc5..23fd138 100644 --- a/src/ttt-server.c +++ b/src/ttt-server.c @@ -173,26 +173,18 @@ ttt_server_get_port (ttt_server_t *server) } static const char *WELCOME_MESSAGE = -"Welcome to ttt-server. So far, this program is still a demonstration\r\n" -"TCP/IP server, acting something like a rather braindead chat server.\r\n" -"The server is currently listening on:\r\n" -"\r\n %s:%s\r\n" -"\r\nTo test this, simply connect one or more clients to that host and port.\r\n" +"Welcome to ttt-server. The server is currently listening on:\r\n" +"\r\n" +" %s:%s\r\n" +"\r\n" +"To test this, simply connect one or more clients to that host and port.\r\n" "For example:\r\n" -"\r\n telnet %s %s\r\n" -"\r\nOnce you have connected a client, the server will send each line of text\r\n" -"it receives to all connected clients. The server reports client joins and\r\n" -"departures on stdout.\r\n" -"\r\nNote that to terminate the telnet client you type Control-], then\r\n" -", then \"close\" (and ) at the \"telnet> \" prompt.\r\n" -"\r\nHave fun!\r\n" -"-Carl\r\n" -"\r\nPS. At this point we're ready to leave the demonstration phase and to\r\n" -"begin implementing TTTP (tic-tac-toe protocol) as well as fixing the\r\n" -"protocol specifcation. We don't need a custom client to move forward on\r\n" -"the server (that is one of the ideas behind using a telnet-compatible\r\n" -"protocol), but a custom client would still be a fine project for a\r\n" -"motivated beginning programmer.\r\n\r\n"; +"\r\n" +" telnet %s %s\r\n" +"\r\n" +"The TTTP (tic-tac-toe protocol) has been partially implemented.\r\n" +"The following commands should work: HELO, HELP, MESSAGE, VERSION, QUIT, WHO.\r\n" +"\r\n"; static void _ttt_server_accept (void *closure, int client_socket)