From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Local interface used for outbound network connections Date: 08 Jan 2003 12:50:20 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <5xof6rhncz.fsf@kfs2.cua.dk> References: <87ptr81sye.fsf@lexx.delysid.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1042028013 5571 80.91.224.249 (8 Jan 2003 12:13:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 8 Jan 2003 12:13:33 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18WF5P-0001Rj-00 for ; Wed, 08 Jan 2003 13:13:31 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18WFAR-0003sU-00 for ; Wed, 08 Jan 2003 13:18:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18WF5J-0002NN-01 for emacs-devel@quimby.gnus.org; Wed, 08 Jan 2003 07:13:25 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18WF4y-0002Mr-00 for emacs-devel@gnu.org; Wed, 08 Jan 2003 07:13:04 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18WF4S-00027u-00 for emacs-devel@gnu.org; Wed, 08 Jan 2003 07:13:03 -0500 Original-Received: from mail.filanet.dk ([195.215.206.179]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18WF4R-00027n-00 for emacs-devel@gnu.org; Wed, 08 Jan 2003 07:12:32 -0500 Original-Received: from kfs2.cua.dk.cua.dk (kfs2.local.filanet.dk [192.168.1.182]) by mail.filanet.dk (Postfix) with SMTP id 713BA7C017; Wed, 8 Jan 2003 11:50:51 +0100 (CET) Original-To: Mario Lang In-Reply-To: <87ptr81sye.fsf@lexx.delysid.org> Original-Lines: 27 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10579 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10579 Mario Lang writes: > For IRC DCC connection, we need a reliable way to optain the IP > address we're reachable via. Normally, IRC clients do this by calling > getsockname on the connection they have to the IRC server. This > returns the interface used + port number. I definitely intended make-network-process to make this info available, but I forgot to implement it. Thanks for reminding me :-) I have just committed the following changes to CVS: make-network-process now stores the local network address in the :local property for client processes (i.e. outbound connections). It does so for all types of connections. The :local property is the proper place for this, and I don't see why it wouldn't work (although you said it doesn't). If you need to differentiate between client and server processes, look at the process-status. I also fixed a bug which meant that the :local property was not setup correctly for new "slave" processes created when a server process accepted a new connection. -- Kim F. Storm http://www.cua.dk