Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: I/O competion ports in Indy?
| Subject: | Re: I/O competion ports in Indy? |
| Posted by: | "Martin James" (mjames_falc..@dial.pipex.com) |
| Date: | Wed, 24 May 2006 16:06:10 |
>
> -In general: If IOCP works can it support 100.000+ connections on a single
windows box?
No. 64k sockets are all that is available on any box. W2k Pro will stagger
up to about 25k sockets, (providing that the load per socket is low, of
course:). Server versions may do better.
> -I am building a chatserver which has to support as many clients
> as possible per box, but the TCP connections don't have to do a
> lot, just when people send chatrequests.
> It is very tempting to try it in UDP because that means
> unlimited "connections".
'Chat' is a TCP protocol, AFAIK.
Or would I be building checks (and keep
> alive packets every minute) to see if messages arrived and just
> reinventing TCP all over again no matter how I solve it? I know this is
the usual answer but in this case it would be nice to avoid the IOCP mess.
IOCP and/or overlapped I/O is not trivial, surely, but is certainly possible
with Delphi. I have had the max. 24/25 k connections open with W2k Pro
without too much of a problem.
Rgds,
Martin