options.type correctly set for PUB/SUB/XPUB/XSUB

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
Martin Sustrik
2010-12-06 22:36:10 +01:00
parent 8a6ff4ccd2
commit ec61751e17
4 changed files with 4 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ zmq::xpub_t::xpub_t (class ctx_t *parent_, uint32_t tid_) :
active (0),
terminating (false)
{
options.type = ZMQ_PUB;
options.type = ZMQ_XPUB;
options.requires_in = false;
options.requires_out = true;
}