Debian Codegraph @

net/unix/listener.ha

raw
1 // SPDX-License-Identifier: MPL-2.0
2 // (c) Hare authors <https://harelang.org>
3
4 use net;
5
6 // Accepts the next connection from a socket. Blocks until a new connection is
7 // available. This is a convenience wrapper around [[net::accept]].
8 export fn accept(
9 sock: net::socket,
10 flags: net::sockflag = 0,
11 ) (net::socket | net::error) = net::accept(sock, flags);