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