adds server socket type and routing id to msg

This commit is contained in:
somdoron
2015-02-02 01:17:37 +02:00
parent 9826a7b19d
commit 5632b57b4a
13 changed files with 420 additions and 10 deletions

View File

@@ -55,6 +55,7 @@ zmq::session_base_t *zmq::session_base_t::create (class io_thread_t *io_thread_,
case ZMQ_PULL:
case ZMQ_PAIR:
case ZMQ_STREAM:
case ZMQ_SERVER:
s = new (std::nothrow) session_base_t (io_thread_, active_,
socket_, options_, addr_);
break;
@@ -297,7 +298,8 @@ int zmq::session_base_t::zap_connect ()
return -1;
}
if (peer.options.type != ZMQ_REP
&& peer.options.type != ZMQ_ROUTER) {
&& peer.options.type != ZMQ_ROUTER
&& peer.options.type != ZMQ_SERVER) {
errno = ECONNREFUSED;
return -1;
}