Article View: borland.public.cppbuilder.nativeapi
Article #16848Sending/ Receiving data via LAN
From: Phuoc Can HUA
Date: Tue, 22 Apr 2003 07:15
Date: Tue, 22 Apr 2003 07:15
23 lines
1600 bytes
1600 bytes
I'm using two threads in a program. They are sharing a ring buffer. As soon as thread A has inserted a record in the buffer it will resume thread B. B will consume the data until the buffer (FIFO) is empty. Then it go to suspended state. 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? I'm absolute newbie in LAN programming. So, all information is welcome. 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. Thanks Phuoc Can HUA -- _/\__/\__/\__/\__/\__/\_ www.huaonline.com My Homepage is my Castle
Technical Details
Message-ID:
<oprn0rrordbq7az6@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,9756fd6308ac6fde,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-22 00:28:04 PST
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Sending/ Receiving data via LAN
From: Phuoc Can HUA <home}a+t{huaonline.com>
MIME-Version: 1.0
Date: Tue, 22 Apr 2003 17:15:14 +1000
Message-ID: <oprn0rrordbq7az6@newsgroups.borland.com>
User-Agent: Opera7.10/Win32 M2 build 2840
NNTP-Posting-Host: 210.9.89.210
X-Trace: newsgroups.borland.com 1050995734 210.9.89.210 (22 Apr 2003 00:15:34 -0700)
Lines: 23
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail