Article View: borland.public.cppbuilder.internet.socket
Article #3943Re: using TIdTCPServer
From: Remy Lebeau (TeamB)
Date: Thu, 05 May 2005 19:48
Date: Thu, 05 May 2005 19:48
17 lines
1707 bytes
1707 bytes
"Jonathan Benedicto" <incorrect@no.server> wrote in message news:427a73e5@newsgroups.borland.com... > 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. Indy does the exact same thing. You just don't have to write your own thread class, Indy'sa default class does most of the work for you. If you want to write your own thread class, though, you can. Although i would not recommend this approach, you can derive a new class from TIdPeerThread and override its Run() method. Then assign the class type to the server's ThreadClass property before activating the server. Gambit
Technical Details
Message-ID:
<427a7816$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<427a2a63$1@newsgroups.borland.com> <427a508e@newsgroups.borland.com> <427a6397@newsgroups.borland.com> <427a73e5@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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <427a2a63$1@newsgroups.borland.com> <427a508e@newsgroups.borland.com> <427a6397@newsgroups.borland.com> <427a73e5@newsgroups.borland.com> Subject: Re: using TIdTCPServer Date: Thu, 5 May 2005 12:48:16 -0700 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <427a7816$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1115322390 68.69.17.41 (5 May 2005 12:46:30 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail