# io_uring: add multishot accept operation · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/bec36aa7c028f2eaec94a2358f3e1326fcb9a30c)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: bec36aa7c028f2eaec94a2358f3e1326fcb9a30c

Requested commit: bec36aa7c028f2eaec94a2358f3e1326fcb9a30c

Commit: bec36aa7c028f2eaec94a2358f3e1326fcb9a30c

Tree: 1479747e3b8738f63edc69ec66f459fd2f993c62

Author: Igor Anić

Committer: Veikka Tuominen

## Message

```
io_uring: add multishot accept operation

Server networking application typically accept multiple connections. Multishot
accept simplifies handling these situations. Applications submits once and
receives CQE whenever a new connection request comes in.

Multishot is active until it is canceled or experience error. While active, and
further notification are expected CQE completion will have IORING_CQE_F_MORE set
in the flags. If this flag isn't set, the application must re-arm this request
by submitting a new one.

Reference: [io_uring and networking in 2023](https://github.com/axboe/liburing/wiki/io_uring-and-networking-in-2023#multi-shot)

```

## Parents

- [e9a6197a8ea38c228e2683d82cfbdbad8e7d912a](https://git.cafe/gitcafe/zig/commit/e9a6197a8ea38c228e2683d82cfbdbad8e7d912a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/bec36aa7c028f2eaec94a2358f3e1326fcb9a30c?format=markdown)
