hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

listener.ha (360B)


      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...
     11 ) (net::socket | net::error) = net::accept(sock, flags...);