+static void test_hello_fd_reply(struct uloop_timeout *t)
+{
+ struct hello_request *req = container_of(t, struct hello_request, timeout);
+ char *data;
+
+ data = alloca(strlen(req->data) + 32);
+ sprintf(data, "msg%d: %s\n", ++req->idx, req->data);
+ if (write(req->fd, data, strlen(data)) < 0) {
+ close(req->fd);
+ free(req);
+ return;
+ }
+
+ uloop_timeout_set(&req->timeout, 1000);
+}
+