From 8095a129e8114341667d2d82d21cfcfc92456fbb Mon Sep 17 00:00:00 2001 From: Kobolog Date: Thu, 15 Mar 2012 15:06:44 +0300 Subject: [PATCH] man entry for the new option --- doc/zmq_setsockopt.txt | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/doc/zmq_setsockopt.txt b/doc/zmq_setsockopt.txt index 32015e56..68a5ffc6 100644 --- a/doc/zmq_setsockopt.txt +++ b/doc/zmq_setsockopt.txt @@ -12,8 +12,9 @@ SYNOPSIS -------- *int zmq_setsockopt (void '*socket', int 'option_name', const void '*option_value', size_t 'option_len');* -Caution: All options, with the exception of ZMQ_SUBSCRIBE, ZMQ_UNSUBSCRIBE and -ZMQ_LINGER, only take effect for subsequent socket bind/connects. +Caution: All options, with the exception of ZMQ_SUBSCRIBE, ZMQ_UNSUBSCRIBE, +ZMQ_LINGER and ZMQ_FAIL_UNROUTABLE only take effect for subsequent socket +bind/connects. DESCRIPTION ----------- @@ -348,6 +349,21 @@ Default value:: 1 (true) Applicable socket types:: all, when using TCP transports. +ZMQ_FAIL_UNROUTABLE: Set unroutable message behavior +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Sets the behavior when an unroutable message is encountered in a 'ZMQ_ROUTER' +socket. A value of `0` is the default behavior when the message is silently +dropped, while a value of `1` forces the sending to fail with a 'EHOSTUNREACH' +error code. + +[horizontal] +Option value type:: int +Option value unit:: boolean +Default value:: 0 (false) +Applicable socket types:: ZMQ_ROUTER + + RETURN VALUE ------------ The _zmq_setsockopt()_ function shall return zero if successful. Otherwise it