logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Building & Member Downloads View previous topic :: View next topic
Reply to topic   Topic: module programming
Author
deostroll



Joined: 12 Feb 2010
Posts: 1

PostPosted: Fri 12 Feb '10 10:01    Post subject: module programming Reply with quote

I am a newbie with the apache web server. Learning very slowly too. Just have an idea of building an http web server application, something in the likes of php, or asp.net.

Say I have a dll which is intended to serve a request. This dll is a managed process. I know apache treats each request as a thread. All the necessary request related data structures are available for use in the thread. I need to call this dll from the thread. I am not clear how to do so?

Since the dll is a managed one, I know I have to invoke the CLR, create the appdomain, load the assembly, etc, etc. Invoking the clr from an unmanaged process involves talking with specific COM interfaces. Hence loading the CLR itself is an expensive operation.

Does apache modules have an infrastructure/setup by means of which we can load this dll once...? And if this dll is loaded, how do I get the multiple request threads to utilize the dll methods/functionality?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Fri 12 Feb '10 17:28    Post subject: Reply with quote

I think a good starting point is http://www.apachetutor.org/ and http://apache.webthing.com/

See also
http://www.apachelounge.com/viewtopic.php?t=3165
http://www.apachelounge.com/viewtopic.php?t=1683
http://www.apachelounge.com/viewtopic.php?t=1682
http://www.apachelounge.com/viewtopic.php?t=3048


If you still have a question please ask again.
Back to top


Reply to topic   Topic: module programming View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads