hare

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

options.ha (374B)


      1 // SPDX-License-Identifier: MPL-2.0
      2 // (c) Hare authors <https://harelang.org>
      3 
      4 use net;
      5 
      6 // Configures the backlog size for a listener. If not specified, a sensible
      7 // default (10) is used.
      8 export type backlog = u32;
      9 
     10 // Options for [[connect]].
     11 export type connect_option = net::sockflag;
     12 
     13 // Options for [[listen]].
     14 export type listen_option = (backlog | net::sockflag);