From 532d4a24e2013262dfa41fd85c06a9715c99abf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 24 Oct 2022 21:03:42 +0200 Subject: New upstream version 4.7 --- doc/socket_functions.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 doc/socket_functions.rst (limited to 'doc/socket_functions.rst') diff --git a/doc/socket_functions.rst b/doc/socket_functions.rst new file mode 100644 index 0000000..fe2b69d --- /dev/null +++ b/doc/socket_functions.rst @@ -0,0 +1,16 @@ +================ +Socket functions +================ + +.. code-block:: c + + #include + + int HX_socket_from_env(const struct addrinfo *ai, const char *intf); + +``HX_socket_from_env`` + The function looks up the current process's file descriptors for a + socket that is listening and which matches the given addrinfo and + (optionally) intf if the latter is not NULL``. Upon success, the fd + number is returned, or -1 if no file descriptor matched. No errors are + signalled. -- cgit v1.2.3