File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -434,6 +434,13 @@ \subsubsection{\routine{cqueues.COMMIT}}
434
434
\subsubsection [\fn{socket.listen} ]{\fn {socket.listen\{ $ \ldots $ \} } }
435
435
Like \fn {socket.listen} with list arguments, but takes a table of named arguments. See also \fn {socket.connect\{\} }.
436
436
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
+
437
444
\subsubsection [\fn{socket.pair} ]{\fn {socket.pair([type])} }
438
445
Returns two bound sockets. Type should be the system type number, e.g. \fn {socket.SOCK\_ STREAM} or \fn {socket.SOCK\_ DGRAM}.
439
446
You can’t perform that action at this time.
0 commit comments