
CHttpServer--how many instances?
Is there only one instance of CHttpServer for all handler threads of
an isapi dll?
Is there only one instance of the CHttpServer class(or the class I
derive from CHttpServer), even when the ISAPI DLL that CHttpServer
represents
is handling many simultaneous requests from many different browsers?
And, therefore, if there is only one CHttpServer class, the "this"
pointer within each thread(that is, within the member function) is the
same, namely, CHttpServer. Correct?
And, therefore, there never a need to declare member variables of
CHttpServer static( like declaring a CCriticalSection static within
CHttpServer). "static" means a class-wide variable, one instance in the
entire program, but since there is never more than one CHttpServer
instantied there is no danger of using the wrong critical section, and
therefore no absolute need to declared it static. Of course, there is
no disadvantage either.
Do I have this right?