🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #322

Conceptual design question...

#322
From: Mike Collins
Date: Wed, 30 Apr 2008 01:21
21 lines
1741 bytes
Hi guys,

I'm just starting the re-design of a product suit that we have. I have a 
conceptual design quesiton and i'm looking for some pointers from the 
*experts*.

Basically i have a Service (non VCL/TService) that has registered to be 
informed when a user logs on or off.  I then have four other TThreads that 
are responcible for carrying out indipendant tasks such as hardware polling 
etc.

I'm looking for a suitably robust and streamline method of informing my 
child threads of the users logon / off.  My current demo uses 
PostThreadMessage but i was wondering if there is a better method of 
Inter-Thread Communication.  This system works ok but i've managed to spoof 
the messages from a rouge service so i was looking for a more secure system 
of ITC.

Any ideas or pointers would be gratefully recieved,

Mike C 
Technical Details
Message-ID: <4817b8f3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!193.201.147.90.MISMATCH!border-3.ams.xsnews.nl!feed.xsnews.nl!border-2.ams.xsnews.nl!news.isoc.lu!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7f6e6520c419b9ba,start
X-Google-Attributes: gid10cc67,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mike Collins" <its@TheBottomOfThePost>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Conceptual design question...
Date: Wed, 30 Apr 2008 01:21:20 -0000
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.3959
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4133
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 78.148.56.68
Message-ID: <4817b8f3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1209514227 78.148.56.68 (29 Apr 2008 17:10:27 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!193.201.147.90.MISMATCH!border-3.ams.xsnews.nl!feed.xsnews.nl!border-2.ams.xsnews.nl!news.isoc.lu!newsgroups.borland.com!not-for-mail