2006-01-14 Carl Worth <cworth@cworth.org> * src/test-board.c (main): Remove bogus line of code which didn't compile.
2006-01-14 Carl Worth <cworth@cworth.org> * Makefile.am: * configure.in: * kub/Makefile.am: Add kub directory to build system. * src/ttt-board.c: (ttt_board_is_won): Fix whitespace.
2005-12-14 Carl Worth <cworth@cworth.org> * src/ttt-server.h: Update the documentation of these functions to be more precise about what happens to client mutexes. * src/ttt-board.c: (ttt_board_is_won): And some white space to make things more readable.
2005-12-14 Carl Worth <cworth@cworth.org> * src/ttt-server.h: Update the documentation of these functions to be more precise about what happens to client mutexes. * src/ttt-board.c: (ttt_board_is_won): And some white space to make things more readable.
2005-12-13 Bryan Worth <bryan@theworths.org> * src/ttt-curses-client: Cleaned up text-entry code. Added support for HOME, END, DELETE, and ARROW keys
2005-12-13 Carl Worth <cworth@cworth.org> * TODO: Note that ttt-server should retry a couple times if its port is not available. * src/test-board.c: (main): Remove debug print messages. * src/ttt-board.c: (ttt_board_make_move): Tighten up the code just a little bit more.
2005-12-10 Richard D. Worth <richard@theworths.org> * TODO: check off INVITE, RETRACT, DECLINE, Game Invitation notices, Connection setup errors, NO_INVITE, User information errors. * src/ttt-client.c: (_ttt_client_execute_helo), (_ttt_client_execute_statistics), (_ttt_client_execute_message), (_ttt_client_execute_help), (_ttt_client_execute_version), (_ttt_client_execute_quit), (_ttt_client_execute_invite), (_ttt_client_execute_accept), (_ttt_client_execute_retract), (_ttt_client_execute_decline), (_read_request), (_execute_request), (_handle_requests_thread): Whitespace changes. Use exported get methods (get_username, get_num_wins). Use strcasecmp in place of toupper. Finish RETRACT, DECLINE. * src/ttt.h: * src/ttt-server.h: * src/ttt-server.c: (ttt_server_init), (ttt_server_register_client), (ttt_server_unregister_client), (ttt_server_verify_username), (ttt_server_get_client_from_username), (ttt_server_add_invite), (ttt_server_remove_invite): Add invite struct. Make username case insensitive (missed in register_client). Implement add_invite, remove_invite. Moved statistics to ttt-client.c
2005-12-09 Carl Worth <cworth@cworth.org> * src/ttt-server.c (ttt_server_unregister_client): Move client has left message to stderr so it makes it to the log file too.
2005-12-09 Carl Worth <cworth@cworth.org> * src/ttt-server.c (main): Put the initial server started message in the log file as well.
2005-12-09 Carl Worth <cworth@cworth.org> * src/ttt-args.h: * src/ttt-args.c: (ttt_args_help), (ttt_args_parse): Add a -u, --user option for controlling the uid under which the server process runs. * src/ttt.h: * src/ttt-server.c: (ttt_server_register_client), (main): Recert the dup of stdout which wasn't working. Instead just print client join information on stderr so that it goes into the log. Implement support for the user option by calling setuid to drop root privileges the process might start out with.
2005-12-09 Bryan Worth <bryan@theworths.org> * src/ttt-curses-client.c: added error checking to ttt_create_client call. Added ability to escape server commands by prepending with /. Added ability so override port number with port=xxxx entry in ~/.ttt/client.conf.
2005-12-08 Carl Worth <cworth@cworth.org> * src/ttt-server.c (main): When detached dup stdout to stderr so that everything appears in the log file.
2005-12-08 Carl Worth <cworth@cworth.org> * src/ttt-args.h: * src/ttt-args.c: (ttt_args_help), (ttt_args_parse): Add -d,--detach and --pid-file=FILE options for running the server as a daemon. * src/ttt-server.c: (ttt_server_statistics), (ttt_server_verify_username), (_detach_and_write_child_pid_to), (main): Add support for detaching and writing out the child PID to a file. * src/x.h: * src/x.c: (xfopen), (xdup2): Two new x-functions.
2005-12-08 Bryan Worth <bryan@theworths.org> * src/ttt-curses-client.c: Multiple improvements! Username taken from USER environment variable and stored as preference in ~/.ttt/client.conf (username=xxxxxx). Backspace should now work correctly with all term types. Status messages display in seperate area. MESSAGE reply from server is suppressed. Eliminated most global variables.
2005-12-08 Carl Worth <cworth@cworth.org> * src/Makefile.am: Fix rule to auto-generate ttt-lex.h. * src/ttt-lex.h: Remove generated file from revision control. * src/ttt-lex.l: Add copyright/license blurb. * src/ttt-lex.l: * src/ttt-client.c: (yy_init_globals), (use_yy_init_globals): Shut off some annoying compiler warnings due to flex bugs (only one still remains).
2005-12-07 Richard D. Worth <richard@theworths.org> * PROTOCOL: Remove unused error NOT_IN_GAME. Add error NOT_VALID_MOVE. * TODO: Add error NOT_VALID_MOVE. * src/ttt-error.h: * src/ttt-error.c: (ttt_error_string): Add section comments. Add error NOT_VALID_MOVE.
2005-12-06 Bryan Worth <bryan@theworths.org> * src/ttt-error.c: fixed missing errors (NO_INVITE, NO_GAME)
2005-12-06 Richard D. Worth <richard@theworths.org> * PROTOCOL: Add error NO_INVITE * TODO: Uncheck INVITE, ACCEPT * src/ttt-error.c: (ttt_error_string): Add errors NO_INVITE, NO_GAME * src/ttt-client.c: (_ttt_client_execute_message), (_ttt_client_execute_help), (_ttt_client_execute_version), (_ttt_client_execute_invite), (_ttt_client_execute_accept), (_ttt_client_execute_retract), (_ttt_client_execute_decline): Whitespace changes. Partially implement RETRACT, DECLINE.
2005-12-05 Richard D. Worth <richard@theworths.org> * PROTOCOL: Fill some missing possible error occurrences. * TODO: Check off INVITE, ACCEPT, ERROR COMMAND, ERROR NO_USER * src/ttt-server.h: * src/ttt-server.c: (ttt_server_verify_username): * src/ttt-client.c: (_ttt_client_execute_help), (_ttt_client_execute_invite), (_ttt_client_execute_accept): Implement INVITE, ACCEPT
2005-12-05 Richard D. Worth <richard@theworths.org> * src/ttt-curses-client.c: (mvprintstr), (mvwprintstr), (wprint), (main), (finish): Whitespace changes.