From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Back to emacsclient/server Date: Tue, 24 Oct 2006 07:06:03 +0200 Message-ID: <453D9F3B.5070201@swipnet.se> References: <453CED2B.7090308@swipnet.se> <453D2791.7090504@swipnet.se> <453D3229.7080802@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1161666450 17745 80.91.229.2 (24 Oct 2006 05:07:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Oct 2006 05:07:30 +0000 (UTC) Cc: Juanma Barranquero , Stefan Monnier , Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 24 07:07:27 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GcEVa-00051F-9I for ged-emacs-devel@m.gmane.org; Tue, 24 Oct 2006 07:07:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GcEVY-000646-Cv for ged-emacs-devel@m.gmane.org; Tue, 24 Oct 2006 01:07:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GcEUw-00061h-9F for emacs-devel@gnu.org; Tue, 24 Oct 2006 01:06:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GcEUu-0005z7-3d for emacs-devel@gnu.org; Tue, 24 Oct 2006 01:06:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GcEUt-0005yC-Mb for emacs-devel@gnu.org; Tue, 24 Oct 2006 01:06:43 -0400 Original-Received: from [81.228.8.185] (helo=av12-1-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GcEUn-0008GK-DZ; Tue, 24 Oct 2006 01:06:37 -0400 Original-Received: by av12-1-sn2.hy.skanova.net (Postfix, from userid 502) id C06DE37E56; Tue, 24 Oct 2006 07:06:36 +0200 (CEST) Original-Received: from smtp4-1-sn2.hy.skanova.net (smtp4-1-sn2.hy.skanova.net [81.228.8.92]) by av12-1-sn2.hy.skanova.net (Postfix) with ESMTP id AA4033840B; Tue, 24 Oct 2006 07:06:36 +0200 (CEST) Original-Received: from coolsville.localdomain (81-235-205-78-no59.tbcn.telia.com [81.235.205.78]) by smtp4-1-sn2.hy.skanova.net (Postfix) with ESMTP id 0BD6B37E44; Tue, 24 Oct 2006 07:06:35 +0200 (CEST) User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) Original-To: Jason Rumney In-Reply-To: <453D3229.7080802@gnu.org> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:61091 Archived-At: Jason Rumney skrev: > Jan Dj=E4rv wrote: >> >> Stefan Monnier skrev: >>> >>> Huh? Why would you need that. >>> It seems just as simple to >>> - bind to any port. >> >> And if that fails, what do you do? You still have to handle bind=20 >> failures. > If that fails, you give up, since it will only ever fail if there are n= o=20 > ports free, or no network interfaces to bind to. If you choose a random port, it is likely you hit a used port, i.e. bind=20 fails. It is not only when there are no ports free or no interfaces to b= ind to. You would of course exclude the well known ports, but even then you can n= ever=20 guarantee that you will not by accident choose a port that is in use. Jan D.