[zeromq-dev] Asynchronous client-to-server (DEALER to ROUTER) without czmq - assert on bind

Pieter Hintjens ph at imatix.com
Mon Oct 14 17:23:19 CEST 2013


You should include just <zmq.h>.

Line 59 is the bind, anyhow...

On Mon, Oct 14, 2013 at 5:14 PM, Laurent Alebarde <l.alebarde at free.fr> wrote:
> Thanks Pieter. In fact, the problem is strange and comes as soon as the
> creation of the socket. But I think I have a build issue. You know, IDE
> comfort ;-) .
>
>
> Le 14/10/2013 16:55, Pieter Hintjens a écrit :
>
> You can't bind to a hostname. Use 127.0.0.1 instead.
>
> On Mon, Oct 14, 2013 at 4:52 PM, Laurent Alebarde <l.alebarde at free.fr>
> wrote:
>
> I am trying to adapt the Guide's "Asynchronous client-to-server (DEALER to
> ROUTER)" in a non czmq version, but it fails when it binds or connects. Here
> is my code.
>
> libzmq_test: ../tests/async_client_to_server_no_czmq.cpp:59: void
> server_task(void*): Assertion `rc == 0' failed.
>
> On its side, the client fails too.
>
> I tried several ports with the same result
>
>
> Any idea please ?
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>



-- 
-
Pieter Hintjens
CEO of iMatix.com
Founder of ZeroMQ community
blog: http://hintjens.com



More information about the zeromq-dev mailing list