[nanomsg] Re: RFC links

  • From: Paul Colomiets <paul@xxxxxxxxxxxxxx>
  • To: Martin Sustrik <sustrik@xxxxxxxxxx>
  • Date: Thu, 22 Aug 2013 11:58:56 +0300

Hi Martin,

On Thu, Aug 22, 2013 at 9:37 AM, Martin Sustrik <sustrik@xxxxxxxxxx> wrote:
> I was thinking of something simpler, like:
>
> s = nn_socket (AF_SP, NN_SUB);
> nn_connect (s, "topology://market-data");
>
> The idea being that access to DNS is already configured on the box, so
> there's no need to specify additional name-resolution-related properties.
>

The idea to get protocol from the name resolution is good. But even in
this simple idea there are shortcomings. You would really write:

nn_connect (s, "topology://_market-data._tcp.your.organization.com")

Note by spec you specify the protocol you would like to use in the DNS request.

-- 
Paul

Other related posts: