summaryrefslogtreecommitdiff
path: root/src/ip.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-08-29 09:41:50 +0200
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-08-29 09:41:50 +0200
commit6996ef6f1a0a50a754608df9444e425d0900b143 (patch)
tree334a30e95fd68fa46e8536eece55c5fdd7dda15e /src/ip.cpp
parentcb09c6951e2c4405318b422a1f9213af3e4b6b8a (diff)
improved error handling
Diffstat (limited to 'src/ip.cpp')
-rw-r--r--src/ip.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ip.cpp b/src/ip.cpp
index 05a267e..0d14fcf 100644
--- a/src/ip.cpp
+++ b/src/ip.cpp
@@ -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;