[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Axiom-developer] Re: [Gcl-devel] Simple web server code for GCLfor
From: |
Mike Thomas |
Subject: |
RE: [Axiom-developer] Re: [Gcl-devel] Simple web server code for GCLfor Windows |
Date: |
Fri, 29 Apr 2005 09:37:57 +1000 |
Hi Camm/Bill
Camm wrote:
| Greetings! Here's a quick way to get started:
|
| ==================================================================
| ===========
| address@hidden:/fix/t1/camm/debian/gcl/gcl-2.6.6$ diff -u
| ../gcl-2.6.5/o/file.d o/file.d
| --- ../gcl-2.6.5/o/file.d 2004-05-07 21:48:58.000000000 +0000
| +++ o/file.d 2005-04-28 16:21:33.000000000 +0000
...
blah blah...
...
|
| >(bar 8080 #'foo)
| ==================================================================
| ===========
|
| Then point your browser to localhost:8080. You should be able to get
| directory listings and files.
I modified the test program to print stuff out and using port 8085 to get
around IIS I was able to get a web page back with the following text:
/TMP /win32app /WINDOWS
from the following input into my browser:
http://localhost:8085/dir
So it looks like your patch works on Windows Camm to a first approximation -
you truly are a wunderkind Camm!
| It is trivial to fork() in linux for each
| connection, but don't know how this would be done on Windows.
Threads.
| Speaking of which, does MS have select?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/win
sock/select_2.asp
but you should be warned that Windows socket functions are often different
to the original Berkeley APIs and select is not able to handle the range of
fd types used in Unix.
| There are other hooks for
| allowing work in the image while connections are handled in the
| background, e.g. SIGIO, but don't know the portable nor most desirable
| way of doing this.
Signals are a mistake for portability to Windows.
Cheers
Mike Thomas.