Article View: borland.public.cppbuilder.internet.socket
Article #3941Re: using TIdTCPServer
From: Jonathan Benedicto
Date: Thu, 05 May 2005 19:28
Date: Thu, 05 May 2005 19:28
20 lines
1719 bytes
1719 bytes
"Simon Guertin" <sguertin_AT@trellianetworks.com> wrote in message news:427a6397@newsgroups.borland.com... >I would have like to have all my processing code in another class. >This class will takeover the client communication since it is not >really the best place to take care of that in the event of >TIdTCPServer OnExecute Event. By processing everything in the >OnExecute Method, it will not be good programming practice I beleive. >I think the way the Java class handles the client connexion is a good >way of OO programming. AFAIK, you can best resemble the way the Java server works by using a TServerSocket component, in "blocking" mode, and using your own thread class. To do this, look in the BCB help for 'server threads, example,' in the index. HTH Jonathan
Technical Details
Message-ID:
<427a73e5@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<427a2a63$1@newsgroups.borland.com> <427a508e@newsgroups.borland.com> <427a6397@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,2b2bb416a158f43e 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: <427a2a63$1@newsgroups.borland.com> <427a508e@newsgroups.borland.com> <427a6397@newsgroups.borland.com> Subject: Re: using TIdTCPServer Date: Thu, 5 May 2005 15:28:37 -0400 Lines: 22 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; Response NNTP-Posting-Host: 69.158.104.124 Message-ID: <427a73e5@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1115321317 69.158.104.124 (5 May 2005 12:28:37 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail