-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathiplookup.elc
38 lines (34 loc) · 4.14 KB
/
iplookup.elc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
;ELC
;;; Compiled by wws@DELL1GHZ_WWS on Sun May 16 09:28:20 2004
;;; from file c:/wws/blogmax/iplookup.el
;;; in Emacs version 20.3.1
;;; with bytecomp version 2.50
;;; with all optimizations.
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
(if (and (boundp 'emacs-version)
(< (aref emacs-version (1- (length emacs-version))) ?A)
(or (and (boundp 'epoch::version) epoch::version)
(string-lessp emacs-version "19.29")))
(error "`iplookup.el' was compiled for Emacs 19.29 or later"))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(byte-code "\300\301!\210\302\303!\207" [provide iplookup require cl] 2)
#@94 Lookup a host name from the default name server.
Return a two-element list: (name addresses)
(defalias 'get-host #[(host) "p\306\307!\310\311! \203 \n\204 \312 \210p\310\311!\313\216 q\210\314b\210\315dS!\210c\210\316 \210\317\320\215\210\314b\210\321\322\323\324#\211\205Y \325 \f{\321\326!\210\321\327!\325 \f{*D-\207" [old-b b p host pos epos get-buffer "*nslookup*" get-process "nslookup" nslookup ((set-buffer old-b)) 0 delete-char comint-send-input --cl-block-nil-- (byte-code "\300b\210\301\302\303\304#\203 \305\306\303\"\210\307\303\300\310#\210\202 " [0 search-forward "\n> " nil t throw --cl-block-nil-- accept-process-output 100] 4) search-forward "Name: " nil t line-end-position "Address" ": " name] 5 (#$ . 663)])
(byte-code "\305\301!\204 \306\307\"\301\nB\305\303!\204 \310\303\nB\305\304!\204# \311\304\nB\310\207" [:test *iplookup-hash* current-load-list *iplookup-autosave-file* *iplookup-autosave-count* boundp make-hash-table equal nil 0] 3)
#@73 Same as get-host, but looks in a cache before going to the name server.
(defalias 'get-host-cached #[(host) " \306:\203 \307\f\"\211@\203 @A\202 \n)\202&