Article View: borland.public.cppbuilder.nativeapi
Article #7465Waiting on multiple objects
From: Eelke
Date: Tue, 01 Feb 2005 15:22
Date: Tue, 01 Feb 2005 15:22
17 lines
1617 bytes
1617 bytes
I have an application that uses a TClientSocket to connect to a server. It uses a thread todo the communication. This threads waits for a TEvent object which is used to signal there is data which needs to be send to the server. This all works as it should. However I now have to add the possibility that the server sends a command to my program. Is there a way I can wait until there is data avaiableable from the socket or the event is signalled? I thought I have to use the WaitForMultipleObjectsEx function for this. It should work with the Handle from the TEvent object. However I cannot find any information if I can use the Handle of the socket with this function call. Any suggestions? Eelke
Technical Details
Message-ID:
<41ff9e9b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d4c50d7343595225,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 01 Feb 2005 16:22:23 +0100 From: Eelke <e.klein@mplussoftware.nl> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Waiting on multiple objects Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.58.1.162 Message-ID: <41ff9e9b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1107271323 81.58.1.162 (1 Feb 2005 07:22:03 -0800) Lines: 17 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail