diff options
author | June McEnroe <june@causal.agency> | 2019-10-25 03:04:45 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-10-25 03:04:45 -0400 |
commit | 243a5f930dce0cddd54d7d927774f7ad82b3d88e (patch) | |
tree | f2730a84c336ac408af4fc2a9da795daf6c5234b /bounce.c | |
parent | Implement client reading from ring buffer (diff) | |
download | pounce-243a5f930dce0cddd54d7d927774f7ad82b3d88e.tar.gz pounce-243a5f930dce0cddd54d7d927774f7ad82b3d88e.zip |
Use produce/consume words for ring buffer
To disambiguate clientRecv and clientRead, say clientConsume.
Diffstat (limited to '')
-rw-r--r-- | bounce.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bounce.c b/bounce.c index c771bbe..1907584 100644 --- a/bounce.c +++ b/bounce.c @@ -149,7 +149,7 @@ int main(int argc, char *argv[]) { short revents = event.fds[i].revents; struct Client *client = event.clients[i]; if (revents & POLLIN) clientRecv(client); - if (revents & POLLOUT) clientRead(client); + if (revents & POLLOUT) clientConsume(client); if (clientError(client) || revents & (POLLHUP | POLLERR)) { clientFree(client); close(event.fds[i].fd); |