]> git.cworth.org Git - ttt/blob - ChangeLog
2005-11-11 Carl Worth <cworth@cworth.org>
[ttt] / ChangeLog
1 2005-11-11  Carl Worth  <cworth@cworth.org>
2
3         * src/ttt.h:
4         * src/x.c:
5         * src/x.h: Move include of stdarg.h from x.c to ttt.h.
6
7 2005-11-11  Carl Worth  <cworth@cworth.org>
8
9         * src/ttt-board.h: Include ttt.h to get standard includes.
10         
11         * src/ttt-socket.c: Replace include of netinet/ip.h with
12         netinet/in.h which seems to be necessary for BSD libc, (eg. Mac OS
13         X).
14
15 2005-11-09  Carl Worth  <cworth@cworth.org>
16
17         * src/Makefile.am:
18         * src/ttt.h:
19         * src/ttt-server.c: (ttt_dispatch), (main):
20         * src/ttt-socket.h:
21         * src/ttt-socket.c: (_sockaddr_init), (_wait_for_connection),
22         (ttt_socket_create_server), (ttt_socket_accept): Push a lot of
23         code out of ttt-server.c down into a new ttt_socket abstraction
24         layer. The code is much easier to read now. The server also no
25         longer exits when the first client exits, but continues to listen
26         for more connections.
27
28 2005-11-09  Carl Worth  <cworth@cworth.org>
29
30         * src/ttt-args.h:
31         * src/ttt-args.c: (ttt_args_help), (ttt_args_parse): Add support
32         for -h,--host, -p,--port, and --log-file command-line arguments.
33         
34         * src/ttt-server.c: (main): Use host, port, and log-file
35         command-line arguments.
36
37         * src/ttt-client.c: (main): Track change in signature of
38         ttt_args_parse.
39         
40         * src/x.h:
41         * src/x.c: (xfdopen), (xfreopen): More wrappers.
42
43 2005-11-08  Carl Worth  <cworth@cworth.org>
44
45         * src/ttt.h:
46         * src/ttt-server.c: (_sockaddr_init), (_wait_for_connection),
47         (main): Add socket, bind, listen, accept calls to provide a
48         simple, functional, one-shot server demonstration.
49
50         * src/x.h:
51         * src/x.c: (xsocket), (xbind), (xlisten), (xfcntl), (xselect): Add
52         more wrapped system calls.
53
54 2005-11-07  Carl Worth  <cworth@cworth.org>
55
56         * src/ttt.h: Grab some useful definitions from wdo.h:
57         ASSERT_NOT_REACHEED and TTT_PRINTF_FORMAT. Add several needed
58         include directives.
59
60         * src/Makefile.am: Rip out not-yet existing ttt-command and
61         ttt-error.
62         
63         * src/ttt-args.c: (ttt_args_parse): Track name change from
64         args_help to ttt_args_help.
65
66         * src/ttt.c: Remove in favor of ttt-server.c and ttt-client.c.
67         
68         * src/x.h: Add prototype for xfwrite.
69
70 2005-11-05  Richard D. Worth  <richard@theworths.org>
71
72         * src/ttt-board.c: (ttt_board_init): Added for loop counter init.
73         * src/ttt-board.h: Added prototypes.
74
75 2005-11-05  Richard D. Worth  <richard@theworths.org>
76
77         * src/args.c: Renamed ttt-args.c
78         * src/args.h: Renamed ttt-args.h
79         * src/ttt-args.c: (ttt_args_help), (ttt_args_usage),
80         (ttt_args_parse): Added ttt_ prefix.
81         * src/ttt-args.h: Added ttt_, TTT_ prefix.
82
83 2005-11-05  Kevin Worth  <kevin@cworth.org>
84
85         * src/ttt-board.c: (ttt_board_init): Implemented board_init.
86         * src/ttt-board.h: (ttt_board_t): Added cells array.
87
88 2005-11-05  Carl Worth  <cworth@cworth.org>
89
90         * src/Makefile.am: Add ttt-board.[ch] and x.[ch]
91         
92         * src/ttt-board.h:
93         * src/ttt-board.c: (ttt_board_init), (ttt_board_init_from_string),
94         (ttt_board_to_string), (ttt_board_write): Add some stub functions
95         for Richard and Kevin to have some practice
96         implementing. Functions to represent a board and to go to/from a
97         string.
98         
99         * src/x.h:
100         * src/x.c: (xasprintf), (xvasprintf), (xpipe), (xfork), (xmalloc),
101         (xcalloc), (xrealloc), (xfdopen), (xstrdup), (xfwrite): Several
102         utility functions that make system calls, check the result, and
103         exit on any error. This will simplify the error checking needed in
104         programs using these functions.
105         
106 2005-11-05  Carl Worth  <cworth@cworth.org>
107
108         * src/Makefile.am: Break things up for separate ttt-client and
109         ttt-server and programs.
110