I'm eager now to try ICS.

Out of curiosity, is the behavior of the D5 TServerSocket (in non-blocking
mode) the same as ICS? I've used the D5 component in the past and have run
into some problems that led me to believe it was not serializing properly.
Would a TTimer OnTimer event in the main application thread mess with the
message pump?

Thanks!!

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Francois Piette
Sent: Thursday, August 17, 2006 11:46 PM
To: ICS support mailing
Subject: Re: [twsocket] Sever architecture


> Imagine a server with many concurrent connections but that only allows 
> one connection at a time to submit a request, access/manipulate data 
> and then send the results back to all other connections. In other 
> words all
requests
> (regardless of which connection it's coming from) must be serialized.

This is very easy to do with ICS :-)

> Is the proper architecture to have one thread contain all the 
> connections and then, when an socket event fires, assign the request 
> to a worker
thread
> (from a pool) which in turn attempts to access a critical section of
another
> thread (the data manipulation thread)?

Not at all. Simply use a TWSocketServer in the main thread and no worker
thread at all. All requests will be automatically serialized provided you
never call the message pump and process the requests in one blocking
function call.

Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list please goto
http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to