Change name of icanhasall to subscribe_to_all

icanhasall is cute (for now), but the effect of the variable is clear
only after tracking down its origin reading the commit. This change is
intended to make it easier for people to have some intuition about its
effect from its name.
This commit is contained in:
Shawn J. Goff
2013-08-31 09:53:47 -04:00
parent 82a00e3a98
commit 6a18f59532
18 changed files with 39 additions and 39 deletions

View File

@@ -36,14 +36,14 @@ zmq::xpub_t::~xpub_t ()
{
}
void zmq::xpub_t::xattach_pipe (pipe_t *pipe_, bool icanhasall_)
void zmq::xpub_t::xattach_pipe (pipe_t *pipe_, bool subscribe_to_all_)
{
zmq_assert (pipe_);
dist.attach (pipe_);
// If icanhasall_ is specified, the caller would like to subscribe
// If subscribe_to_all_ is specified, the caller would like to subscribe
// to all data on this pipe, implicitly.
if (icanhasall_)
if (subscribe_to_all_)
subscriptions.add (NULL, 0, pipe_);
// The pipe is active when attached. Let's read the subscriptions from