🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3810

Re: Creating sockets

#3810
From: Jonathan Benedicto
Date: Fri, 29 Apr 2005 21:31
26 lines
2276 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:4272a3d0$1@newsgroups.borland.com...
>
> Only 100's?  That is nothing for a normal server to handle.  You can 
> just
> spawn a new thread for each connection and use normal 
> (non-overlapped)
> blocking operations.  That won't tax system resources very much, 
> especially
> if you utilize adequate thread pooling.  If you are woried about so 
> many
> threads running at a time, you can trim it down a bit by using 
> fibers with
> the threads (a fiber is an application-scheduled psudo-thread - a 
> single
> thread can be used to manage multiple fibers, which in turn can each 
> service
> a single socket).  Overlapped I/O only makes sense for sockets when 
> you need
> to handle 1000's of connections at a time.

I don't really know how many clients are going to be connecting to the 
server. It might be <100 or even >1000. So, with this uncertainty, 
would you suggest I leave or stick with IOCP ?

Jonathan 
Technical Details
Message-ID: <4272a79a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42717e9e$1@newsgroups.borland.com> <42718c45$1@newsgroups.borland.com> <4271b145$1@newsgroups.borland.com> <4271c6a8$1@newsgroups.borland.com> <4272519f$1@newsgroups.borland.com> <42727b69$1@newsgroups.borland.com> <42729648$1@newsgroups.borland.com> <4272a3d0$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,890efe40447445cf
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Jonathan Benedicto" <incorrect@no.server>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <42717e9e$1@newsgroups.borland.com> <42718c45$1@newsgroups.borland.com> <4271b145$1@newsgroups.borland.com> <4271c6a8$1@newsgroups.borland.com> <4272519f$1@newsgroups.borland.com> <42727b69$1@newsgroups.borland.com> <42729648$1@newsgroups.borland.com> <4272a3d0$1@newsgroups.borland.com>
Subject: Re: Creating sockets
Date: Fri, 29 Apr 2005 17:31:07 -0400
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 69.158.104.124
Message-ID: <4272a79a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1114810266 69.158.104.124 (29 Apr 2005 14:31:06 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail