Stephen Leake <stephen_le...@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 _______________________________________________ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english