[zeromq-dev] not binging to all LISTEN port

Pieter Hintjens ph at imatix.com
Tue Sep 23 12:48:01 CEST 2014


I'm not going to ask why you are trying to do something so... wrong.
Presumably you have good reasons.

Disregarding netstat, can clients connect on the other ports, or not?

On Tue, Sep 23, 2014 at 12:25 AM, Mohit Anchlia <mohitanchlia at gmail.com> wrote:
> I have a code that binds zeromq socket to 20-22 sockets, however when I look
> at netstat it is only binding to 5 sockets.
>
> The log message is being printed 22 times with 22 unique port numbers and
> there doesn't seem to be any error logged or exception throws either. I am
> trying to understand why I am not seeing the socket on 22 port?
>
> ZMQ.Socket socket = context.socket(ZMQ.REP);
>
> socket.bind("tcp://*:" + port);
>
> log.info("Server bind port=" + port);
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>



More information about the zeromq-dev mailing list