summaryrefslogtreecommitdiff
path: root/include/libHX/socket.h
blob: b15168231d0bfe0aacd0ec920e3919aef179b61a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _LIBHX_SOCKET_H
#define _LIBHX_SOCKET_H 1

#ifdef _WIN32
#	include <ws2tcpip.h>
#else
#	include <netdb.h>
#endif

#ifdef __cplusplus
extern "C" {
#endif

extern int HX_socket_from_env(const struct addrinfo *, const char *intf);

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /* _LIBHX_SOCKET_H */