Article View: borland.public.cppbuilder.internet.socket
Article #3348Re: sockets????
From: Remy Lebeau (TeamB)
Date: Sat, 22 Oct 2005 02:11
Date: Sat, 22 Oct 2005 02:11
25 lines
1797 bytes
1797 bytes
"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:
<43599f5f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.gamma.ru!Gamma.RU!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43599303@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 From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <43599303@newsgroups.borland.com> Subject: Re: sockets???? Date: Fri, 21 Oct 2005 19:11:45 -0700 Lines: 27 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: <43599f5f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1129946975 68.69.17.41 (21 Oct 2005 19:09:35 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.gamma.ru!Gamma.RU!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail