[zeromq-dev] Resolving localhost

Pieter Hintjens ph at imatix.com
Sat Jan 4 00:03:06 CET 2014


On Fri, Jan 3, 2014 at 10:52 PM, Lindley French <lindleyf at gmail.com> wrote:

> The one connecting worked fine. The one binding did not. After some
> investigation, it appears that tcp_address.cpp's resolve_nic_name just
> doesn't understand that "localhost" means to use the loopback interface.
>
> The question is: is this a reasonable thing to add?

Yes, it would be a good addition. You're far from the first person to
wonder why bind and connect don't accept the same syntax even for this
obvious case.

-Pieter



More information about the zeromq-dev mailing list