🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: design question

#4059
From: Matt Jacobs
Date: Sat, 16 Apr 2005 04:31
16 lines
1747 bytes
"Jonathan Benedicto" <incorrect@no.server> wrote:

>I'm trying to build a server application, that uses my own custom 
>protocol. Many clients +100 possibly will have connect to this server, 
>and stay connected for hours at a time.
>
>Due to the fact that the server will run on a Celeron processor 
>server, what design do you think I should take ? I had thought that I 
>should use a non-blocking single TServerSocket because +100 threads 
>seemed too much for a Celeron. But what design would you suggest ?

That's not an excessive number of connections. In that situation, I
would probably use Indy. If you find you are having performance
issues, you might want to look at IOCP. But even before that, I would
try to use XML over HTTP via ISAPI/IIS. Why write your own server if
you don't have to?
Technical Details
Message-ID: <735161l0gqsvpj24g6v5h93l2oerfvfi24@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <425ed3f4$2@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,618fb8cf8717b9fe
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Matt Jacobs <noyb@noyb.com>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: design question
Date: Fri, 15 Apr 2005 21:31:13 -0700
Reply-To: __noyb@noyb.com
Message-ID: <735161l0gqsvpj24g6v5h93l2oerfvfi24@4ax.com>
References: <425ed3f4$2@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.23.153.114
X-Trace: newsgroups.borland.com 1113625833 24.23.153.114 (15 Apr 2005 21:30:33 -0800)
Lines: 16
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail