unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
Cc: Lars Ingebrigtsen <larsi@gnus.org>,
	Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: [RFC] automatically retrying network connections
Date: Mon, 23 Jul 2018 09:41:48 +0200	[thread overview]
Message-ID: <mvmk1pmv1oj.fsf@suse.de> (raw)
In-Reply-To: <CAKDRQS44-Fbo7V0UuWmFANtzv2GK=P2w2xO_m0fhQ3GBW_r+vA@mail.gmail.com> (Jimmy Yuen Ho Wong's message of "Mon, 23 Jul 2018 00:29:15 +0100")

On Jul 23 2018, Jimmy Yuen Ho Wong <wyuenho@gmail.com> wrote:

> On Sun, Jul 22, 2018 at 12:43 PM, Lars Ingebrigtsen <larsi@gnus.org> wrote:
>> Robert Pluim <rpluim@gmail.com> writes:
>>
>>>     (dns-query NAME &optional TYPE FULLP REVERSEP)
>>>
>>>     Query a DNS server for NAME of TYPE.
>>>     If FULLP, return the entire record returned.
>>>     If REVERSEP, look up an IP address.
>>>
>>> which you could use instead of 'nslookup' or 'getaddrinfo' (although
>>> 'dns-query' can also punt to 'nslookup', so maybe getaddrinfo is
>>> better).
>>
>> getaddrinfo is probably a lot better.  `dns-query' isn't that good at
>> retries and the like, if I remember correctly.

dns-query can only do a single DNS query, which is unusable for proper
address resolution.

> He's just pointing out one of the MANY functions in emacs that allows
> you to look up an IP address. I've found at least 4, and we now
> introducing the 5th and 6th...

Address resolution isn't trivial, that's why getaddrinfo exists.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



  reply	other threads:[~2018-07-23  7:41 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-20 20:06 [RFC] automatically retrying network connections Robert Pluim
2018-07-21 15:21 ` Jimmy Yuen Ho Wong
2018-07-22 10:28   ` Lars Ingebrigtsen
2018-07-22 14:28     ` Jimmy Yuen Ho Wong
2018-07-22 16:44       ` Michael Albinus
2018-07-22 23:24         ` Jimmy Yuen Ho Wong
2018-07-22 11:18   ` Robert Pluim
2018-07-22 11:43     ` Lars Ingebrigtsen
2018-07-22 23:29       ` Jimmy Yuen Ho Wong
2018-07-23  7:41         ` Andreas Schwab [this message]
2018-07-22 10:24 ` Lars Ingebrigtsen
2018-07-22 10:41   ` Robert Pluim
2018-07-22 10:59     ` Lars Ingebrigtsen
2018-07-22 14:08       ` Robert Pluim
2018-07-22 14:29         ` Lars Ingebrigtsen
2018-07-22 13:32   ` Andy Moreton
2018-07-22 13:35     ` Lars Ingebrigtsen
2018-07-22 23:27     ` Jimmy Yuen Ho Wong
2018-07-23  8:23       ` Robert Pluim
2018-07-23 20:57         ` Jimmy Yuen Ho Wong
2018-07-22 13:37   ` Noam Postavsky
2018-07-22 13:41     ` Lars Ingebrigtsen
2018-07-22 23:26       ` Jimmy Yuen Ho Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mvmk1pmv1oj.fsf@suse.de \
    --to=schwab@suse.de \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    --cc=wyuenho@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).