[zeromq-dev] pub sub - first messages do not arrive from publisher to subscriber even though publisher is launched after the subscriber
Martin Sustrik
sustrik at 250bpm.com
Tue Sep 20 13:13:24 CEST 2011
Hi Omer,
> Isn't there any way which is more elegant of doing so instead of using
> Sleep?
> Something like : waitForConnectionComplition() type of API?
At the publisher you don't know how many subscribers there are going to
be, thus it's not clear for how long should such
waitForConnectionCompletion function wait. Should it wait till first
connection is established? Second? Fifth? Etc.
Martin
More information about the zeromq-dev
mailing list