On 2004.05.11, Dave Kuhlman <[EMAIL PROTECTED]> wrote:
> It'd be great if there were a document on how to convert a CGI
> application written in C into an AOLserver loadable module with a
> registered function.

Write some thin wrapper functions that your C program currently calls to
get the values you're looking for, and instead have those thin wrapper
functions look at the environment.

Then, just compile your CGI written in C as a standalone executable, and
let AOLserver exec it per request.  This is all assuming that this isn't
a CGI that expects to get a high volume of load.

If you're already familiar and comfortable with writing C code, you'd
best skip past the documentation and look straight at AOLserver source.
You'd probably want to start by looking at nsd/conn.c ...

-- Dossy

--
Dossy Shiobara                       mail: [EMAIL PROTECTED]
Panoptic Computer Network             web: http://www.panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to