+
+void
+ttt_client_handle_requests (ttt_client_t *client)
+{
+#define BUF_SIZE 1024
+
+ while (1) {
+ char buf[BUF_SIZE];
+ int cnt;
+ cnt = read (client->socket, buf, BUF_SIZE);
+ if (cnt == 0)
+ break;
+ write (0, buf, cnt);
+ write (client->socket, buf, cnt);
+ }
+}
+
+