🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Indy 9 - UDP Server and Client

#2168
From: Remy Lebeau (TeamB)
Date: Fri, 04 Aug 2006 23:07
20 lines
1718 bytes
"Paul at NCF" <not plmacca@clara.co.uk> wrote in message
news:44d3bfa4$1@newsgroups.borland.com...

> This is why running the application twice caused problems, as signaling
> in one app was causing the threads in both apps to wake up (when one
> wasn't supposed to).  I hope this is correct?

Yes, it is.  Named objects can span across process boundaries.

> Is there an easy way to have named objects which are unique, such as
> using the process ID?

Yes.  Simply append the unique ID to your non-unique name, ie:

    MyEvent = new TEvent ( NULL, false, false, MyName +
IntToStr(GetCurrentProcessID) );


Gambit
Technical Details
Message-ID: <44d3d444$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44cf0014@newsgroups.borland.com> <44cfb716$1@newsgroups.borland.com> <44d11bab@newsgroups.borland.com> <44d125a5$1@newsgroups.borland.com> <44d1a7a0$1@newsgroups.borland.com> <44d3bfa4$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,30a8f8e1a1549b1e
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: <44cf0014@newsgroups.borland.com> <44cfb716$1@newsgroups.borland.com> <44d11bab@newsgroups.borland.com> <44d125a5$1@newsgroups.borland.com> <44d1a7a0$1@newsgroups.borland.com> <44d3bfa4$1@newsgroups.borland.com>
Subject: Re: Indy 9 - UDP Server and Client
Date: Fri, 4 Aug 2006 16:07:15 -0700
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: <44d3d444$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1154733124 68.69.17.41 (4 Aug 2006 16:12:04 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail