[zeromq-dev] Questions about erlzmq
Michael Scofield
bayinamine at gmail.com
Wed Sep 4 10:36:02 CEST 2013
OH...I should have definitely checked the syntax.
But, why is
{ok, Context} = erlzmq:context().
the Context is empty? Shouldn't it be some zeromq context handler/reference?
2013/9/4 Pieter Hintjens <ph at imatix.com>
> The correct syntax would be "tcp://*:5555" (note the extra ':')
>
> On Wed, Sep 4, 2013 at 8:37 AM, Michael Scofield <bayinamine at gmail.com>
> wrote:
> > Hi:
> > I've just install the erlzmq2 on my laptop(Ubuntu 12.04 32bit).
> > I decided to try it. So I opened the erl shell, and tried this:
> > {ok, Context} = erlzmq:context().
> > It returned
> > {ok,<<>>}
> > Something was not right here: the Context were just empty bits!
> > Then I continued:
> > {ok, Responder} = erlzmq:socket(Context, rep).
> > erlzmq:bind(Responder, "tcp://*5555").
> > here came the error when the last statement was executed:
> > {error, einval}
> > How such error happened?
> >
> > _______________________________________________
> > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130904/876e55dc/attachment.htm>
More information about the zeromq-dev
mailing list