[zeromq-dev] IPC address validity

Claudio Carbone erupter at libero.it
Tue Jan 8 19:01:38 CET 2013

On 08/01/13 18:42, Claudio Carbone wrote:
> When ran in debug mode it throws the following assert error:
> Invalid argument (session_base.cpp:490)
> when executing the publishing line in the main thread's main
> ctrlpublisher->PubMsg(2,HEADER_CTRL,"Test");
> Which strikes me as not possible as I'm not using pgm but rather ipc.
I gave this a bit more thought:
I'm using pgm for the first subscriber and that's where I get the error, 
after the initialization of the subscriber in the child thread.
Now this was working before I modified a few things to implement the ipc 
control socket.
I've been debugging my code and I am sure that all the parameters 
(context, connection address, connection type) are passed correctly.
The error is here
/[489] int rc = pgm_receiver->init (udp_encapsulation, 
addr->address.c_str ());
[490]             errno_assert (rc == 0);/

so it appears I'm passing a wrong address.
But I'm positive the address is being passed correctly, I followed it 
through every step.

Any hint is really appreciated.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130108/6194e69a/attachment.htm>

More information about the zeromq-dev mailing list