Skip to content

Commit

Permalink
Net: Document the possibility to bind to port 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
mefyl committed Jun 21, 2023
1 parent b97cbe5 commit 18014e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib_eio/net.mli
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ val listen : ?reuse_addr:bool -> ?reuse_port:bool -> backlog:int -> sw:Switch.t
The new socket will be closed when [sw] finishes, unless closed manually first.
On platforms that support this, passing port [0] will bind to a random port.
For (non-abstract) Unix domain sockets, the path will be removed afterwards.
@param backlog The number of pending connections that can be queued up (see listen(2)).
Expand Down

0 comments on commit 18014e8

Please sign in to comment.