52
58
if (!priv->state) return 0;
55
61
if (priv->state == GIITCP_LISTEN) {
57
63
if (select(priv->listenfd + 1, &fds, NULL, NULL, &tv) <= 0) {
60
66
if (_gii_tcp_accept(priv) == 0) {
61
67
fprintf(stderr, "filter-tcp: accepted connection\n");
69
75
if (select(priv->fd + 1, NULL, &fds, NULL, &tv) <= 0) {