🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: sockets????

#3349
From: Gary D
Date: Sun, 23 Oct 2005 16:37
46 lines
2740 bytes
If you can make a COM server broadcast without needing a request from a
client
can you tell me how you did it? Borland support says it can't be done.
( Remember it's an UNSOLICITED broadcast I'm after, no client involvment
other than receiving )

I have multi-threads running already so that part you could skip.
I have a server client demo running also, so the only thing I need to see is
how you get
around the server's need for the request from the client.

BTW, I don't even need to send any "data" I just need the server to fire an
event in the client.
That event will already contain everything the client needs.

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:43599f5f$1@newsgroups.borland.com...
>
> "Gary D" <gcdesroches@nctc.com> wrote in message
> news:43599303@newsgroups.borland.com...
>
>> Is a socket the best way to do this?
>
> A socket is one way to do it.
>
>> I have looked into COM and found that COM servers
>> will not broadcast an unsolicited message.
>
> Yes, they will.  I have COM servers that broadcast events just fine.
>
>> the server will have to do extra work holding open a triggered
>> event until something happens to complete the sequence.
>
> Use multiple threads.  Have one thread monitoring the events, then have
> another thread that broadcasts events to clients.  When a monitored event
> occurs, copy the relative information to a queue in the broadcast thread 
> and
> then go back to monitoring for new events.  This way, the broadast thread 
> is
> run in parallel to the monitoring thread and the monitoring is not waiting
> for the broadcast to finish, and vice versa.
>
>
> Gambit
>
> 
Technical Details
Message-ID: <435bbbf2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43599303@newsgroups.borland.com> <43599f5f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,b9d755a2fd611a30
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Gary D" <gcdesroches@nctc.com>
From: "Gary D" <gcdesroches@nctc.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <43599303@newsgroups.borland.com> <43599f5f$1@newsgroups.borland.com>
Subject: Re: sockets????
Date: Sun, 23 Oct 2005 11:37:51 -0500
Lines: 48
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 66.38.101.139
Message-ID: <435bbbf2$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1130085362 66.38.101.139 (23 Oct 2005 09:36:02 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail