summaryrefslogtreecommitdiff
path: root/src/options.hpp
diff options
context:
space:
mode:
authorSteven McCoy <steven.mccoy@miru.hk>2011-08-08 12:10:31 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-08-08 12:10:31 +0200
commit784041f5b99ba28252c9bb67a5bfb4a5da41ef93 (patch)
tree3306c8c36266a052f9365d757197e7852ec52031 /src/options.hpp
parent8378180cbb69c44fdd84f9ee05620bf8744cce48 (diff)
ZMQ_IPV4ONLY option added
At this point option exists, is documented and can be set, however, it has no effect. Signed-off-by: Steven McCoy <steven.mccoy@miru.hk> Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/options.hpp')
-rw-r--r--src/options.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/options.hpp b/src/options.hpp
index d8847f5..4689522 100644
--- a/src/options.hpp
+++ b/src/options.hpp
@@ -78,6 +78,11 @@ namespace zmq
int rcvtimeo;
int sndtimeo;
+ // If 1, indicates the use of IPv4 sockets only, it will not be
+ // possible to communicate with IPv6-only hosts. If 0, the socket can
+ // connect to and accept connections from both IPv4 and IPv6 hosts.
+ int ipv4only;
+
// If true, session reads all the pending messages from the pipe and
// sends them to the network when socket is closed.
bool delay_on_close;