Skip to content

Commit 50f2d22

Browse files
committed
Merge PR #219
2 parents 4c264e4 + 96ad171 commit 50f2d22

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

doc/cqueues.pdf

454 Bytes
Binary file not shown.

doc/cqueues.tex

+7
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,13 @@ \subsubsection{\routine{cqueues.COMMIT}}
434434
\subsubsection[\fn{socket.listen}]{\fn{socket.listen\{ $\ldots$ \}}}
435435
Like \fn{socket.listen} with list arguments, but takes a table of named arguments. See also \fn{socket.connect\{\}}.
436436

437+
\subsubsection[\fn{socket.dup}]{\fn{socket.dup(fd)}}
438+
Return a new socket using a duplicate of an existing file-descriptor (integer).
439+
440+
\subsubsection[\fn{socket.fdopen}]{\fn{socket.fdopen(fd)}}
441+
Like \fn{socket.dup(fd)}, but takes ownership of the file-descriptor itself instead of duplicating it.
442+
This is useful e.g. for listening on sockets passed from systemd.
443+
437444
\subsubsection[\fn{socket.pair}]{\fn{socket.pair([type])}}
438445
Returns two bound sockets. Type should be the system type number, e.g. \fn{socket.SOCK\_STREAM} or \fn{socket.SOCK\_DGRAM}.
439446

0 commit comments

Comments
 (0)