Hello ZeroMQ mailing list
I hoping someone can give me some pointers as I'm struggling with auto discovery
I'm trying to build an auto discovery mechanism whereby a server
broadcasts messages via multicast or broadcast address to which
clients will respond.
For now I'm just trying to send a mess
W dniu 2014-11-26 23:06, James Chapman pisze:
> I've tried epgm, pgm, tcp, udp, broadcast addresses, multicast
> addresses, I just don't seem to be making any headway, so any guidance
> would be greatly appreciated. Where am I going wrong and has anyone
> else tackled this problem on the Windows pl
On 26 November 2014 at 23:30, Dorvin wrote:
> I don't see subscription in your code. You have to subscribe to
> something before you receive any message. Also bear in mind bind and
> connect are not always interchangable and in general I would advice
> publisher side to bind.
>
> Jarek
Thanks Ja
W dniu 2014-11-27 11:31, James Chapman pisze:
> I looked at the following example from the user guide:
> http://zguide.zeromq.org/cpp:wuproxy and tried to implement a similar
> example. Obviously I'm still doing something wrong because I get
> exceptions thrown when trying to bind on the publisher
Thanks again Jarek
If I wrap the bind in a try catch I get the following error message:
"Protocol not supported"
I get the same exception thrown on the subscriber whilst trying to
perform the connect().
This therefore probably has something to do with the ZMQ build on my
platform. Do I need to
James - regarding your message setup:
std::string szMessageData = "Foo";
zmq::message_t zmqMsgOut(sizeof(szMessageData) + 1);
memcpy((void *)zmqMsgOut.data(), szMessageData.c_str(),
sizeof(szMessageData));
1) why the "+1" at the end of the zmqMsgOut setup? Messages are not null
terminated (though
Thanks Bob
> 1) why the "+1" at the end of the zmqMsgOut setup? Messages are not null
> terminated (though you can make them that way).
Thinking about it now this may have been a misunderstanding right from
the beginning although I now can't work out how I came to think it was
required. I'll remo