Article View: borland.public.cppbuilder.internet.socket
Article #3213Re: Multi-threaded TCP server
From: Remy Lebeau (TeamB)
Date: Thu, 27 Oct 2005 16:43
Date: Thu, 27 Oct 2005 16:43
17 lines
1441 bytes
1441 bytes
"Rasid" <rasid.pac@bilten.metu.edu.tr> wrote in message
news:4360b6d0$1@newsgroups.borland.com...
> The thread manager has a property called ThreadClass to
> determine the type of thread instances that it creates. Now
> the question is 'how can I make this ThreadClass property
> represent the thread object that I wrote.'
Set the Server's ThreadClass, not the ThreadMgr's:
IdTCPServer1.ThreadClass = __classid(TMyThread);
Make sure that your class derives from TIdPeerThread.
Gambit
Technical Details
Message-ID:
<43610328$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4360b6d0$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,4a1aa81ad250bfce 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: <4360b6d0$1@newsgroups.borland.com> Subject: Re: Multi-threaded TCP server Date: Thu, 27 Oct 2005 09:43:56 -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: <43610328$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1130431272 68.69.17.41 (27 Oct 2005 09:41:12 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail