[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multiple sources and accounts with GNUS
From: |
Tassilo Horn |
Subject: |
Re: Multiple sources and accounts with GNUS |
Date: |
Tue, 21 Dec 2010 17:22:03 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) |
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
- Re: Multiple sources and accounts with GNUS, Richard Riley, 2010/12/20
- Re: Multiple sources and accounts with GNUS, Yuri D'Elia, 2010/12/21
- Re: Multiple sources and accounts with GNUS, Tassilo Horn, 2010/12/21
- Re: Multiple sources and accounts with GNUS, Yuri D'Elia, 2010/12/22
- Re: Multiple sources and accounts with GNUS, Tassilo Horn, 2010/12/22
- Re: Multiple sources and accounts with GNUS, Yuri D'Elia, 2010/12/22
- Re: Multiple sources and accounts with GNUS, Alberto Luaces, 2010/12/23
- Re: Multiple sources and accounts with GNUS, Tassilo Horn, 2010/12/23
Message not available