[fpc-pascal] Re: Odyssey: SSockets and Threads.
Michael Van Canneyt
michael at freepascal.org
Fri Apr 26 10:00:04 CEST 2013
On Fri, 26 Apr 2013, Marco van de Voort wrote:
> In our previous episode, Michael Van Canneyt said:
>>>> I am aware of all this.
>>>> My only 'objection' is that waitfordata() will operate on a single socket only.
>>>> Good for single client, bad for server.
>>>
>>> How many open sockets must you have to qualify as a server?
>>
>> Well, you can't get more than ~ 65000 so lets go for half of that :-)
>
> I maybe have cut explanation short a bit, but I meant that not all servers
> are internet facing high load ones, where single thread per connection is a
> mortal sin.
I understood that. No problem.
Like I said, I'll add a WaitForData() or Select(read,write,exception) or
something similar.
Just trying to find a 'nice' solution for multiple sockets.
Probably a "class function select (array of socketstream)"
Michael.
More information about the fpc-pascal
mailing list