[zeromq-dev] new user question
Martin Sustrik
sustrik at fastmq.com
Tue Jul 28 14:14:49 CEST 2009
Hi Derek,
> I have been trying to get a simple example running without success, and
> was wondering whether anyone would know where I am going wrong:
>
> A brief overview of the program is that the server sends a string, and
> the client should log that the string is received.
> When I start the server, I can see on telnet that data is being sent
> over the socket. However, when I start the client, it does not receive
> any data.
Maybe a synchronisation issue? If you send a message before the other
party is connected it gets dropped. If that's the case, you can use
style_load_balancing to ensure the messages aren't dropped when the
other peer is not available at the moment.
>
> Moreover, if I ctrlC the client app, it makes the server app assert.
Return true from server's error_handler. That'll prevent the crash.
Martin
More information about the zeromq-dev
mailing list