mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-30 21:50:49 +01:00
improved error handling
This commit is contained in:
@@ -285,7 +285,8 @@ int zmq::resolve_ip_hostname (sockaddr_in *addr_, const char *hostname_)
|
||||
// Separate the hostname.
|
||||
std::string hostname (hostname_, delimiter - hostname_);
|
||||
|
||||
// Resolve host name.
|
||||
// Resolve host name. Some of the error info is lost in case of error,
|
||||
// however, there's no way to report EAI errors via errno.
|
||||
addrinfo req;
|
||||
memset (&req, 0, sizeof (req));
|
||||
req.ai_family = AF_INET;
|
||||
|
||||
Reference in New Issue
Block a user