diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-07-21 21:23:33 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-07-21 21:23:33 +0200 |
commit | 6eddfddeb9da77b6523d8e1ebc2e75c8b5dc5ac9 (patch) | |
tree | a91cb3fe015335f1e39d15cfb43d9d1d934fb679 /include/libHX/socket.h | |
parent | 7501bff8432444b7ae8e7f3d9289c0d61f3f0b64 (diff) | |
parent | 448048363acac15d165200cfdabda02a0e8b9e9b (diff) |
Merge branch 'release/debian/4.14-1'debian/4.14-1
Diffstat (limited to 'include/libHX/socket.h')
-rw-r--r-- | include/libHX/socket.h | 5 |
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); |