Article View: borland.public.cppbuilder.nativeapi
Article #16857Re: Sending/ Receiving data via LAN
From: Remy Lebeau (TeamB)
Date: Tue, 22 Apr 2003 17:16
Date: Tue, 22 Apr 2003 17:16
27 lines
2132 bytes
2132 bytes
"Phuoc Can HUA" <home}a+t{huaonline.com> wrote in message
news:oprn0rrordbq7az6@newsgroups.borland.com...
> How can I do this with two applications via LAN (a
> data record has 2 integers and 1 string)? I assume that
> thread B can't be 'woken up' by thread A via LAN,
> does B has to poll the data?
That depends on how the two applications are communicating with each other
to begin with. Are you using Named Pipes? Sockets? RPC? ActiveX/COM?
Other? Each one of those technologies handle data transmissions
differently. Some need data to be polled periodically, while some trigger
notifications when data is available.
> By the way, is there any software which can simulate LAN
> on a single machine so that the applications can be run on
> one PC in the development phase.
Any of the above-mentioned technologies can be used in a single-PC
environment. It's just a matter of specifying the appropriate connection
values that represent the local machine. For example, named pipes can use
the local machine name that is returned by GetComputerName(), while sockets
can use the special loopback IP address "127.0.0.1".
Gambit
Technical Details
Message-ID:
<3ea578a9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<oprn0rrordbq7az6@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,9756fd6308ac6fde X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-22 10:25:37 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <oprn0rrordbq7az6@newsgroups.borland.com> Subject: Re: Sending/ Receiving data via LAN Date: Tue, 22 Apr 2003 10:16:02 -0700 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3ea578a9$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1051031721 207.175.226.26 (22 Apr 2003 10:15:21 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail