diff options
Diffstat (limited to 'src/socket_base.cpp')
-rw-r--r-- | src/socket_base.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/socket_base.cpp b/src/socket_base.cpp index 0452993..6763167 100644 --- a/src/socket_base.cpp +++ b/src/socket_base.cpp @@ -100,8 +100,8 @@ int zmq::socket_base_t::bind (const char *addr_) } #endif - // Unknown address type. - errno = EFAULT; + // Unknown protocol. + errno = EPROTONOSUPPORT; return -1; } @@ -185,7 +185,7 @@ int zmq::socket_base_t::connect (const char *addr_) // If the socket type requires bi-directional communication // multicast is not an option (it is uni-directional). if (options.requires_in && options.requires_out) { - errno = EFAULT; + errno = ENOCOMPATPROTO; return -1; } @@ -235,8 +235,8 @@ int zmq::socket_base_t::connect (const char *addr_) } #endif - // Unknown address type. - errno = EFAULT; + // Unknown protoco. + errno = EPROTONOSUPPORT; return -1; } |