Implemented network interface name resolution on Windows platform

Added fallback mechanism for specific socket binding on Windows platform with IPv6 enabled
This commit is contained in:
Mário Kašuba
2016-10-10 17:29:53 +02:00
parent 3996d4e20d
commit f6962903a7
2 changed files with 153 additions and 6 deletions

View File

@@ -72,6 +72,11 @@ namespace zmq
int resolve_interface (const char *interface_, bool ipv6_, bool is_src_ = false);
int resolve_hostname (const char *hostname_, bool ipv6_, bool is_src_ = false);
#if defined ZMQ_HAVE_WINDOWS
int get_interface_name(unsigned long index, char ** dest) const;
int wchar_to_utf8(const WCHAR * src, char ** dest) const;
#endif
union {
sockaddr generic;
sockaddr_in ipv4;