From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Back to emacsclient/server Date: Mon, 23 Oct 2006 22:59:37 +0100 Message-ID: <453D3B49.2010008@gnu.org> 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: 8bit X-Trace: sea.gmane.org 1161640914 13310 80.91.229.2 (23 Oct 2006 22:01:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Oct 2006 22:01:54 +0000 (UTC) Cc: Juanma Barranquero , =?ISO-8859-1?Q?Jan_Dj=E4rv?= , Stefan Monnier , Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 24 00:01:51 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 1Gc7rP-0003V3-EK for ged-emacs-devel@m.gmane.org; Tue, 24 Oct 2006 00:01:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gc7rO-0006cn-M4 for ged-emacs-devel@m.gmane.org; Mon, 23 Oct 2006 18:01:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gc7qh-0006KJ-OW for emacs-devel@gnu.org; Mon, 23 Oct 2006 18:00:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gc7qg-0006Jb-4B for emacs-devel@gnu.org; Mon, 23 Oct 2006 18:00:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gc7qf-0006JY-VW for emacs-devel@gnu.org; Mon, 23 Oct 2006 18:00:46 -0400 Original-Received: from [213.86.207.50] (helo=exchange.integrasp.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gc7qe-0007ug-7o; Mon, 23 Oct 2006 18:00:44 -0400 Original-Received: from [10.0.0.32] (localhost [127.0.0.1]) by exchange.integrasp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id TPPWTDGH; Mon, 23 Oct 2006 22:50:47 +0100 Original-Received: from 83.67.23.108 ([83.67.23.108] helo=[10.0.0.32]) by ASSP-nospam; 23 Oct 2006 22:50:44 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666 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:61076 Archived-At: Jason Rumney wrote: > Jan Djärv 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 >> failures. > If that fails, you give up, since it will only ever fail if there are > no ports free, or no network interfaces to bind to. The following seems to work nicely following Stefan's suggestion. (cadr (process-contact (make-network-process :name "test" :buffer "test" :host 'local :service t :server t)))