summaryrefslogtreecommitdiff
path: root/include/libHX/socket.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2023-03-11 18:24:14 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2023-03-11 18:24:14 +0100
commit3cd3fca072b0f0958d260a5b147bb09df165bd0f (patch)
treec9a7de96002ffaa5df663540398f81d7ba69241e /include/libHX/socket.h
parent2feb2da15867887be02beaadf9a92d2e8a997b85 (diff)
parent980784c1917f19bfd2e9b11faca76d14e8589daa (diff)
Update upstream source from tag 'upstream/4.12'
Update to upstream version '4.12' with Debian dir 2e81fc9e49b613c77c6c552b837c5a8ee952b59b
Diffstat (limited to 'include/libHX/socket.h')
-rw-r--r--include/libHX/socket.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libHX/socket.h b/include/libHX/socket.h
index e9db77f..e34e1c8 100644
--- a/include/libHX/socket.h
+++ b/include/libHX/socket.h
@@ -1,6 +1,7 @@
#ifndef _LIBHX_SOCKET_H
#define _LIBHX_SOCKET_H 1
+#include <stdint.h>
#ifdef _WIN32
# include <ws2tcpip.h>
#else
@@ -12,6 +13,10 @@
extern "C" {
#endif
+extern int HX_addrport_split(const char *spec, char *host, size_t hsize, uint16_t *port);
+extern int HX_inet_connect(const char *host, uint16_t port, unsigned int oflags);
+extern int HX_inet_listen(const char *host, uint16_t port);
+extern int HX_local_listen(const char *path);
extern int HX_socket_from_env(const struct addrinfo *, const char *intf);
extern int HX_sockaddr_is_local(const struct sockaddr *, socklen_t, unsigned int flags);
extern int HX_ipaddr_is_local(const char *, unsigned int flags);