🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4879

Re: TIdPeerThread hook?

#4879
From: Paul Machiaverna
Date: Fri, 03 Dec 2004 16:13
34 lines
1749 bytes
Okay, I'm officially stumped.  How do you assign a class to IdTCPServer->ThreadClass?

My class is declared as:

class UTNetConnectThread : public TIdPeerThread

Is that correct?  Do I need to define a specific constructor?

Paul Mac

"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:
>
>"Paul Machiaverna" <paul.machiaverna@i-stat.com> wrote in message
>news:41af854e$1@newsgroups.borland.com...
>
>> I need to associate some "user" data to a TIdPeerThread.
>
>TIdPeerThread has a Data property for exactly that purpose.
>
>> 1) If TIdPeerThread offers a hook (pointer of type void*), the
>> data can be attached to it.
>
>See above.
>
>> 2) Create a super class with TIdPeerThread as the base.  How
>> does one tell TIdTCPServer to use these user threads?
>
>Assign the server's ThreadClass property.
>
>
>Gambit
>
>
Technical Details
Message-ID: <41b09eb2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41af854e$1@newsgroups.borland.com> <41af93ff$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.141     
References: <41af854e$1@newsgroups.borland.com> <41af93ff$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <41b09eb2@newsgroups.borland.com>
Date: 3 Dec 2004 09:13:22 -0700
X-Trace: newsgroups.borland.com 1102094002 207.105.83.66 (3 Dec 2004 09:13:22 -0700)
Lines: 35
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail