From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/14361 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.user Subject: Re: Multiple sources and accounts with GNUS Date: Tue, 21 Dec 2010 17:22:03 +0100 Message-ID: <87y67jw0yc.fsf@member.fsf.org> References: <87r5dco6vm.fsf@savara.sat.thregr.org> <82pqsvqkax.fsf@stephe-leake.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1292948549 8485 80.91.229.12 (21 Dec 2010 16:22:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Dec 2010 16:22:29 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Tue Dec 21 17:22:24 2010 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PV4yj-00023B-VD for gegu-info-gnus-english@m.gmane.org; Tue, 21 Dec 2010 17:22:22 +0100 Original-Received: from localhost ([127.0.0.1]:54750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PV4yi-0007F6-GN for gegu-info-gnus-english@m.gmane.org; Tue, 21 Dec 2010 11:22:20 -0500 Original-Received: from [140.186.70.92] (port=33289 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PV4yf-0007Eq-Av for info-gnus-english@gnu.org; Tue, 21 Dec 2010 11:22:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PV4yd-0002y1-Pl for info-gnus-english@gnu.org; Tue, 21 Dec 2010 11:22:17 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:40272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PV4yd-0002xn-K7 for info-gnus-english@gnu.org; Tue, 21 Dec 2010 11:22:15 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PV4yc-0001yS-AE for info-gnus-english@gnu.org; Tue, 21 Dec 2010 17:22:14 +0100 Original-Received: from tsdh.uni-koblenz.de ([141.26.67.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Dec 2010 17:22:14 +0100 Original-Received: from tassilo by tsdh.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Dec 2010 17:22:14 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: tsdh.uni-koblenz.de User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:WU+/Vei9JgPRUfozPN64qh6/rQ8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:14361 Archived-At: Stephen Leake writes: Hi Stephen, >> Deciding if I'm connected to the university's network is easy, >> because there I get an IP starting with 141.26, so here's my code. >> >> >> (defun th-uni-network-p () >> "Return non-nil, if the computer is connected to the uni network." >> (catch 'in-uni-network >> (dolist (net (network-interface-list)) > > I don't have network-interface-list; is it some library you added? No, it's defined in Emacs' process.c: ,----[ C-h f network-interface-list RET ] | network-interface-list is a built-in function in `C source code'. | | (network-interface-list) | | Return an alist of all network interfaces and their network address. | Each element is a cons, the car of which is a string containing the | interface name, and the cdr is the network address in internal | format; see the description of ADDRESS in `make-network-process'. `---- But it's compiled only conditionally, depending on having the net/if.h header file and maybe some configure switches. I don't know if that's available on windows, as I can see from your mail header. Bye, Tassilo