[zeromq-dev] problem with socket idendity
Santosh_Bidaralli at Dell.com
Santosh_Bidaralli at Dell.com
Fri Jul 10 14:47:23 CEST 2015
Dell Customer Communication
Hi Peter,
Please make sure that you set the identity of the socket before you call connect API.
Thanks,
Santosh
From: zeromq-dev-bounces at lists.zeromq.org [mailto:zeromq-dev-bounces at lists.zeromq.org] On Behalf Of Peter Ritter
Sent: Friday, July 10, 2015 5:29 AM
To: zeromq-dev at lists.zeromq.org
Subject: [zeromq-dev] problem with socket idendity
Hello Everyone
I got into ZeroMQ a few weeks ago, after having read The Guide a few years ago. I got some of the simple examples to work, but am having problems with more complex things. I am developing some classes for asynchronous client server messaging, with automatic heartbeating and an event loop on both the client and server side. I also created a class representing multi_frame_messages to make all this a little easier. Its really a pity something like this doesn't already exist.
Anyway, my problem is the following: For debugging purposes I am explicitly setting the idendity of each client socket, passing a string like "client1", "client2". This works for simple examples, but somehow the client name does not come through to the server side (router socket) in the class I created. I get a bunch of 'weird' characters which seem to be what the system uses by default. What is the nature of the default idendity data? Is it a binary number? How can I display it properly?
I also would like to know under what circumstance the idendity string that I set can get lost as it does? I tried this with 'inproc' and 'tcp' type connections.
I am working on MS-Windows8, and I am using the latest stable version, downloaded a few days ago.
Thanks, Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150710/df8131ab/attachment.htm>
More information about the zeromq-dev
mailing list