1 2005-11-09 Carl Worth <cworth@cworth.org>
5 * src/ttt-server.c: (ttt_dispatch), (main):
7 * src/ttt-socket.c: (_sockaddr_init), (_wait_for_connection),
8 (ttt_socket_create_server), (ttt_socket_accept): Push a lot of
9 code out of ttt-server.c down into a new ttt_socket abstraction
10 layer. The code is much easier to read now. The server also no
11 longer exits when the first client exits, but continues to listen
14 2005-11-09 Carl Worth <cworth@cworth.org>
17 * src/ttt-args.c: (ttt_args_help), (ttt_args_parse): Add support
18 for -h,--host, -p,--port, and --log-file command-line arguments.
20 * src/ttt-server.c: (main): Use host, port, and log-file
21 command-line arguments.
23 * src/ttt-client.c: (main): Track change in signature of
27 * src/x.c: (xfdopen), (xfreopen): More wrappers.
29 2005-11-08 Carl Worth <cworth@cworth.org>
32 * src/ttt-server.c: (_sockaddr_init), (_wait_for_connection),
33 (main): Add socket, bind, listen, accept calls to provide a
34 simple, functional, one-shot server demonstration.
37 * src/x.c: (xsocket), (xbind), (xlisten), (xfcntl), (xselect): Add
38 more wrapped system calls.
40 2005-11-07 Carl Worth <cworth@cworth.org>
42 * src/ttt.h: Grab some useful definitions from wdo.h:
43 ASSERT_NOT_REACHEED and TTT_PRINTF_FORMAT. Add several needed
46 * src/Makefile.am: Rip out not-yet existing ttt-command and
49 * src/ttt-args.c: (ttt_args_parse): Track name change from
50 args_help to ttt_args_help.
52 * src/ttt.c: Remove in favor of ttt-server.c and ttt-client.c.
54 * src/x.h: Add prototype for xfwrite.
56 2005-11-05 Richard D. Worth <richard@theworths.org>
58 * src/ttt-board.c: (ttt_board_init): Added for loop counter init.
59 * src/ttt-board.h: Added prototypes.
61 2005-11-05 Richard D. Worth <richard@theworths.org>
63 * src/args.c: Renamed ttt-args.c
64 * src/args.h: Renamed ttt-args.h
65 * src/ttt-args.c: (ttt_args_help), (ttt_args_usage),
66 (ttt_args_parse): Added ttt_ prefix.
67 * src/ttt-args.h: Added ttt_, TTT_ prefix.
69 2005-11-05 Kevin Worth <kevin@cworth.org>
71 * src/ttt-board.c: (ttt_board_init): Implemented board_init.
72 * src/ttt-board.h: (ttt_board_t): Added cells array.
74 2005-11-05 Carl Worth <cworth@cworth.org>
76 * src/Makefile.am: Add ttt-board.[ch] and x.[ch]
79 * src/ttt-board.c: (ttt_board_init), (ttt_board_init_from_string),
80 (ttt_board_to_string), (ttt_board_write): Add some stub functions
81 for Richard and Kevin to have some practice
82 implementing. Functions to represent a board and to go to/from a
86 * src/x.c: (xasprintf), (xvasprintf), (xpipe), (xfork), (xmalloc),
87 (xcalloc), (xrealloc), (xfdopen), (xstrdup), (xfwrite): Several
88 utility functions that make system calls, check the result, and
89 exit on any error. This will simplify the error checking needed in
90 programs using these functions.
92 2005-11-05 Carl Worth <cworth@cworth.org>
94 * src/Makefile.am: Break things up for separate ttt-client and
95 ttt-server and programs.