🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TIdPeerThread hook?

#4871
From: Remy Lebeau (TeamB)
Date: Thu, 02 Dec 2004 22:11
20 lines
1545 bytes
"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: <41af93ff$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!news.netcologne.de!newsfeed-fusi.netcologne.de!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
References: <41af854e$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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41af854e$1@newsgroups.borland.com>
Subject: Re: TIdPeerThread hook?
Date: Thu, 2 Dec 2004 14:11:40 -0800
Lines: 22
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: <41af93ff$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1102025727 68.69.17.41 (2 Dec 2004 14:15:27 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!news.netcologne.de!newsfeed-fusi.netcologne.de!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