Article View: borland.public.cppbuilder.internet.socket
Article #4865TIdPeerThread hook?
From: Paul Machiaverna
Date: Thu, 02 Dec 2004 20:12
Date: Thu, 02 Dec 2004 20:12
17 lines
1534 bytes
1534 bytes
I need to associate some "user" data to a TIdPeerThread. This data would be defined and attached in the OnConnect method to be made available in OnExecute and OnDisconnect. I see using one of the following scenarios: 1) If TIdPeerThread offers a hook (pointer of type void*), the data can be attached to it. 2) Create a super class with TIdPeerThread as the base. How does one tell TIdTCPServer to use these user threads? 3) Create a data structure outside of the Indy world and use the TIdPeerThread::TreadID as a hash value to access a specific record in the data structure. Paul Mac
Technical Details
Message-ID:
<41af854e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!transit.nntp.hccnet.nl!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,a67b5a7da45f80f8,start 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: TIdPeerThread hook? Newsgroups: borland.public.cppbuilder.internet.socket X-User-Info: 130.36.11.141 NNTP-Posting-Host: 207.105.83.66 Message-ID: <41af854e$1@newsgroups.borland.com> Date: 2 Dec 2004 13:12:46 -0700 X-Trace: newsgroups.borland.com 1102021966 207.105.83.66 (2 Dec 2004 13:12:46 -0700) Lines: 17 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!transit.nntp.hccnet.nl!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail