Replied:      Sat, 11 Dec 1993 00:04:57 -0600 karthik@informix.com (Karthikeyan Guruswamy)
Date:         Fri, 10 Dec 1993 15:44:00 PST
From:         karthik@informix.com (Karthikeyan Guruswamy)
To:           sanders@BSDI.COM
Subject:      Re: WWW on Windows NT.

Hi, 

Here's what you need to port to NT:
----------------------------------

Most of the changes that you've to do is because of the limitations of the
NT PERL currently available in FTP sites:

(a) NT PERL does not support fork/exec/alarm correctly. Reopening socket
    descriptors and $_ = <S> read from sockets don't work. 

(b) I had to use a temporary file to read the http request from the client
    using sysread on the socket. Then I do all the writes meant for the socket
    to another RESULT file. At the last stage, I just do: 

    while( $_= <RESULT>)
        print;

    on select(S); 

(c) NT PERL adds cr/lf to all the html files when reading into the buffer.
    So I set binmode(HANDLE) on all $FROM on rawfd to read in correctly.
    If you dont do that, you might get the MIME parser error I Reported for
    the client

(d) Comment all alarms, flocks.

(e) Merge plexus.pl with plexus because exec sucks in NT PERL.

(f) Comment the fork function to if (1). 

That made it work. I could run your demo (walk.html) beautifully. NTPERL uses
WINSOCK so it's a lot easy installing it. I'm glad I could do something like
this. Thanks for the inspiration.

Karthik
    

