Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: info-gnus-english@gnu.org
Subject: Re: Multiple sources and accounts with GNUS
Date: Tue, 21 Dec 2010 17:22:03 +0100	[thread overview]
Message-ID: <87y67jw0yc.fsf@member.fsf.org> (raw)
In-Reply-To: <82pqsvqkax.fsf@stephe-leake.org>

Stephen Leake <stephen_leake@stephe-leake.org> 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

  reply	other threads:[~2010-12-21 16:22 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-20 14:29 Yuri D'Elia
2010-12-20 20:44 ` Tassilo Horn
2010-12-20 22:24 ` Joseph Gay
     [not found] ` <mailman.0.1292877887.26867.info-gnus-english@gnu.org>
2010-12-21 14:20   ` Stephen Leake
2010-12-21 16:22     ` Tassilo Horn [this message]
     [not found] <mailman.7.1292862320.13743.info-gnus-english@gnu.org>
2010-12-20 16:42 ` Richard Riley
2010-12-21 19:14   ` Yuri D'Elia
2010-12-21 19:49     ` Tassilo Horn
2010-12-22 11:25       ` Yuri D'Elia
2010-12-22 12:21         ` Tassilo Horn
2010-12-22 17:39           ` Yuri D'Elia
2010-12-23  8:22             ` Alberto Luaces
2010-12-23  8:35             ` Tassilo Horn
     [not found]           ` <mailman.3.1293039604.895.info-gnus-english@gnu.org>
2011-01-02  7:50             ` Lars Magne Ingebrigtsen
     [not found]   ` <mailman.7.1292958880.30697.info-gnus-english@gnu.org>
2010-12-22 13:58     ` Richard Riley

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

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

  git send-email \
    --in-reply-to=87y67jw0yc.fsf@member.fsf.org \
    --to=tassilo@member.fsf.org \
    --cc=info-gnus-english@gnu.org \
    /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.
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 NNTP newsgroup(s).