mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-14 23:07:59 +02:00
Whitespace and comment fixes
This commit is contained in:
17
src/xpub.cpp
17
src/xpub.cpp
@@ -74,9 +74,9 @@ void zmq::xpub_t::xread_activated (pipe_t *pipe_)
|
||||
if (options.type == ZMQ_XPUB && (unique || (*data && verbose)))
|
||||
pending.push_back (blob_t (data, size));
|
||||
}
|
||||
else /*process message unrelated to sub/unsub*/ {
|
||||
else
|
||||
// Process user message coming upstream from xsub socket
|
||||
pending.push_back (blob_t (data, size));
|
||||
}
|
||||
|
||||
sub.close ();
|
||||
}
|
||||
@@ -177,13 +177,12 @@ void zmq::xpub_t::send_unsubscription (unsigned char *data_, size_t size_,
|
||||
xpub_t *self = (xpub_t*) arg_;
|
||||
|
||||
if (self->options.type != ZMQ_PUB) {
|
||||
|
||||
// Place the unsubscription to the queue of pending (un)sunscriptions
|
||||
// to be retrived by the user later on.
|
||||
blob_t unsub (size_ + 1, 0);
|
||||
unsub [0] = 0;
|
||||
memcpy (&unsub [1], data_, size_);
|
||||
self->pending.push_back (unsub);
|
||||
// Place the unsubscription to the queue of pending (un)sunscriptions
|
||||
// to be retrived by the user later on.
|
||||
blob_t unsub (size_ + 1, 0);
|
||||
unsub [0] = 0;
|
||||
memcpy (&unsub [1], data_, size_);
|
||||
self->pending.push_back (unsub);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user