"William M. Perry" wrote:
Ben Wing <ben(a)666.com> writes:
>> For Windows, I'd suggest to use wininet.dll: there is an
>> already implemented FTP there.
>
> is this a standard dll? [presumably]
Yup.
> if so, it would be great if someone wrote an interface to this, so that
> efs could use it on windows instead of having to connect to a program. i
> presume this is what the windows programs that do ftp that i've seen are
> using.
>
> any takers?
I could try and spend a few days un-GTK-ifying the foreign-function
interface (I've been meaning to do this for a while). Then, depending on
what the interface looks like (can someone send a header file?), you could
import the functions like this:
that would be awesome if you could do this.
header sent in a separate message.
(import-function HANDLE InetOpen ((string . agent)
(dword . access-type)
(string . proxy)
(string . proxy-bypass)
(dword . flags)))
(import-function HANDLE InetOpenUrl ((HANDLE . inethandle)
(string . url)
(string . headers)
(dword . headers-length)
(dword . flags)
(dword . context))
(setq inet-handle (InetOpen (format "XEmacs/%d.%d" emacs-major-version
emacs-minor-version)
INET_OPEN_TYPE_DIRECT
nil nil nil))
(setq inet-handle (InetOpenUrl inet-handle
"ftp://ftp.xemacs.org/pub/xemacs/README"
nil nil nil nil))
etc, etc.
Personally I'd prefer seeing something written in lisp that could be used
even on unix, but maybe that's just me. :)
-bp
--
Ceterum censeo vi esse delendam
--
ben
I'm sometimes slow in getting around to reading my mail, so if you
want to reach me faster, call 520-661-6661.
See
http://www.666.com/ben/chronic-pain/ for the hell I've been
through.