<?xml version="1.0"?>

<st-source>
<time-stamp>From VisualWorks® NonCommercial, Release 7 of June 14, 2002 on December 5, 2002 at 6:33:20 am</time-stamp>


<class>
<name>LTDHttpServer</name>
<environment>VisualWave</environment>
<super>VisualWave.TinyHttpServer</super>
<private>false</private>
<indexed-type>none</indexed-type>
<inst-vars>activeSemaphore </inst-vars>
<class-inst-vars></class-inst-vars>
<imports></imports>
<category>Wave-Server</category>
<attributes>
<package>Wave-Server</package>
</attributes>
</class>

<methods>
<class-id>VisualWave.LTDHttpServer</class-id> <category>initialize-release</category>

<body package="Wave-Server">initialize
	super initialize.
	activeSemaphore := Semaphore new.
	activeSemaphore initSignalsTo: self maxConnections.
	^self</body>
</methods>

<methods>
<class-id>VisualWave.LTDHttpServer</class-id> <category>accessing</category>

<body package="Wave-Server">maxConnections
	^100</body>
</methods>

<methods>
<class-id>VisualWave.LTDHttpServer</class-id> <category>private</category>

<body package="Wave-Server">handleConnection: aSocket

	activeSemaphore wait.
	[[service serve: aSocket] ensure: [aSocket close. activeSemaphore signal].
		"Processor timeSliceYield"] 
		forkAt: self defaultServiceProcessPriority.</body>
</methods>

</st-source>
