[zeromq-dev] Resolving localhost

Matt Connolly matt.connolly at me.com
Fri Jan 3 23:37:42 CET 2014


Shouldn't localhost already be resolved by the system from /etc/hosts?

Matt 

> On 4 Jan 2014, at 7:52 am, Lindley French <lindleyf at gmail.com> wrote:
> 
> For a simple test case I'm working on, I tried creating two zmq sockets, then binding one to "tcp://localhost:12345" and connecting the other to the same address.
> 
> 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?
> _______________________________________________
> 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