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