zeromq/libzmq — pull request #274 by Kobolog (2012-03-15 12:16:43+00:00)
Title: An options to choose the behavior for unroutable messages in ZMQ_ROUTER sockets

This patch introduces an ability to choose the behavior for unroutable messages in ZMQ_ROUTER sockets via a setsockopt(ZMQ_FAIL_UNROUTABLE, true/false, sizeof(int)) call. A value of 'true' will force the send() method to fail with a EHOSTUNREACH error code.