X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=ChangeLog;h=85d24c63102f69a8328e8028f306419eb9901e10;hp=e7d6dd684dcb0fbb2c56ebf977b39b60b4b3a7fc;hb=5d56d3cd8b4685e905ed604277ac9cb32c876127;hpb=ad9f96f734bb560c25ceca4facc85a84f4c3993f diff --git a/ChangeLog b/ChangeLog index e7d6dd6..85d24c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,117 @@ +2005-11-11 Carl Worth + + * src/ttt-server.h: + * src/ttt-server.c: (ttt_server_init), (ttt_server_add_client), + (_accept_client), (main): Add a new ttt_server_t object with a + mutex-protected list of clients. Move client handling code down + into new ttt-client.c. + + * src/ttt-client.h: + * src/ttt-client.c: (ttt_client_create), (ttt_client_destroy), + (ttt_client_handle_requests): New ttt_client_t object that simply + holds a pointer back to the server as well as the client socket + file descriptor. + + * src/ttt-socket.h: + * src/ttt-socket.c: (ttt_socket_accept): Add closure argument. Add + a call to fork before calling the accept callback. + + * src/ttt-args.c: Hide unused ttt_args_usage from the compiler to + keep it from complaining. + + * src/ttt.c: (main): Rename the client main program from + ttt-client to ttt.c, (since the server code now has its own + ttt-client.c). + + * src/ttt.h: + * src/Makefile.am: Include and link with pthread now that we have + pthread-based mutex locking. + +2005-11-11 Carl Worth + + * src/ttt-server.c: (main): Don't assign to stderr which is + apparently an invalid lvalue on Mac OS X. + + * src/x.h: + * src/x.c: (xfreopen): Change return type to void. + + * src/ttt-board.c: (ttt_board_to_string): Add missing return + statement. + +2005-11-11 Carl Worth + + * configure.in: Key off of src/ttt.h instead of src/ttt.c which no + longer exists. + +2005-11-11 Carl Worth + + * src/ttt.h: + * src/x.c: + * src/x.h: Move include of stdarg.h from x.c to ttt.h. + +2005-11-11 Carl Worth + + * src/ttt-board.h: Include ttt.h to get standard includes. + + * src/ttt-socket.c: Replace include of netinet/ip.h with + netinet/in.h which seems to be necessary for BSD libc, (eg. Mac OS + X). + +2005-11-09 Carl Worth + + * src/Makefile.am: + * src/ttt.h: + * src/ttt-server.c: (ttt_dispatch), (main): + * src/ttt-socket.h: + * src/ttt-socket.c: (_sockaddr_init), (_wait_for_connection), + (ttt_socket_create_server), (ttt_socket_accept): Push a lot of + code out of ttt-server.c down into a new ttt_socket abstraction + layer. The code is much easier to read now. The server also no + longer exits when the first client exits, but continues to listen + for more connections. + +2005-11-09 Carl Worth + + * src/ttt-args.h: + * src/ttt-args.c: (ttt_args_help), (ttt_args_parse): Add support + for -h,--host, -p,--port, and --log-file command-line arguments. + + * src/ttt-server.c: (main): Use host, port, and log-file + command-line arguments. + + * src/ttt-client.c: (main): Track change in signature of + ttt_args_parse. + + * src/x.h: + * src/x.c: (xfdopen), (xfreopen): More wrappers. + +2005-11-08 Carl Worth + + * src/ttt.h: + * src/ttt-server.c: (_sockaddr_init), (_wait_for_connection), + (main): Add socket, bind, listen, accept calls to provide a + simple, functional, one-shot server demonstration. + + * src/x.h: + * src/x.c: (xsocket), (xbind), (xlisten), (xfcntl), (xselect): Add + more wrapped system calls. + +2005-11-07 Carl Worth + + * src/ttt.h: Grab some useful definitions from wdo.h: + ASSERT_NOT_REACHEED and TTT_PRINTF_FORMAT. Add several needed + include directives. + + * src/Makefile.am: Rip out not-yet existing ttt-command and + ttt-error. + + * src/ttt-args.c: (ttt_args_parse): Track name change from + args_help to ttt_args_help. + + * src/ttt.c: Remove in favor of ttt-server.c and ttt-client.c. + + * src/x.h: Add prototype for xfwrite. + 2005-11-05 Richard D. Worth * src/ttt-board.c: (ttt_board_init): Added for loop counter init.