Article View: borland.public.cppbuilder.internet.socket
Article #4881Re: TIdPeerThread hook?
From: Paul Machiaverna
Date: Fri, 03 Dec 2004 18:03
Date: Fri, 03 Dec 2004 18:03
29 lines
2111 bytes
2111 bytes
Ahh. Something (__classid) I've never used before. Very cool. Works like a charm. Thank you! I've decided to use a descendant thread class instead of .Data since it seems that I have finer control over when and how user objects get created and destroyed. One of the data members is a pointer to a dynamically created structure. The short of all this is that all of your suggestions have led me to using Indy in the intended way instead of the old WinShoes way. The application is much more responsive to socket connects and disconnects. Paul Mac - Completely Satisfied Indy/Winshoes User Since 1999 - :-) "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote: > >"Paul Machiaverna" <paul.machiaverna@i-stat.com> wrote in message >news:41b07de3$1@newsgroups.borland.com... > >> Okay, that answers how to attach user data to a thread. Now, I >> just have to figure out the syntax for assigning a descendant class >> of TIdPeerThread to TIdTCPServer::ThreadClass! :-o > >Use the classid keyword: > > IdTCPServer1->ThreadClass = __classid(TMyCustomPeerThread); > > >Gambit
Technical Details
Message-ID:
<41b0b89c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<41af854e$1@newsgroups.borland.com> <41af93ff$1@newsgroups.borland.com> <41b07de3$1@newsgroups.borland.com> <41b0ad2d$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,a67b5a7da45f80f8 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Paul Machiaverna" <paul.machiaverna@i-stat.com> Sender: "Paul Machiaverna" <paul.machiaverna@i-stat.com> Reply-To: "Paul Machiaverna" <paul.machiaverna@i-stat.com> Subject: Re: TIdPeerThread hook? Newsgroups: borland.public.cppbuilder.internet.socket X-User-Info: 130.36.11.140 References: <41af854e$1@newsgroups.borland.com> <41af93ff$1@newsgroups.borland.com> <41b07de3$1@newsgroups.borland.com> <41b0ad2d$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <41b0b89c$1@newsgroups.borland.com> Date: 3 Dec 2004 11:03:56 -0700 X-Trace: newsgroups.borland.com 1102100636 207.105.83.66 (3 Dec 2004 11:03:56 -0700) Lines: 31 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail