bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

/hurd/httpfs


From: arun v
Subject: /hurd/httpfs
Date: Mon, 14 Jan 2002 18:28:11 -0800 (PST)

hai,

I'm a beginner to Hurd pgmming and I'm trying to
develop httpfs.

As a first step i tried to implement a trivial single
file translator for http GET command. It uses the
trivfs library.
It works like this:
hurd~# settrans -a test.html /hurd/httpfs www.gnu.org/
hurd~# lynx test.html
This will give index.html from gnu.org.

Now i want to implement the same pgm using libnetfs.
So i just defined the netfs_attempt_read() fn. i.e. in
that function the socket is opened and request is send
and the incoming stream is read. Other functions in
libnetfs are given just trivial definitions. But the
program crashes when loaded.

I'm attaching the code "http-try.c" herewith for
reference. Can you please help me in finding/fixing
the bug in the code?

I also tried for a full-fledged filesystem using
Igor's gopherfs pgm as a model. That pgm also seems to
have the same bug and it also crashes. The code
"http-netfs.c" is also attached.

Can you please help me in finding/fixing the bug?

Thanks,
Arun.

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

Attachment: http-try.c
Description: http-try.c

Attachment: http-netfs.c
Description: http-netfs.c


reply via email to

[Prev in Thread] Current Thread [Next in Thread]