Article View: borland.public.cppbuilder.nativeapi
Article #14712Re: BCB TCP IP component
From: Hans Galema
Date: Sun, 03 Aug 2003 21:58
Date: Sun, 03 Aug 2003 21:58
26 lines
2113 bytes
2113 bytes
Chris wrote: > Could I just compare the address to the sockets to match the sockets and > messages up, Please be a little more specific. Yes, you can compare the Socket parameter in OnClientRead() with all the Socket addresses in the Connections[] array, is that is what you meant. > or would I have to use the Data property? No. > The try-catch block I need is to detect the exception thrown, so it wouldn't > popup the exception window If you set ErrorCode to zero in OnClientError() you will not get an exception alert. > and I could automatically delete the data that I > had been receiving from memory by detecting which socket had disconnected > abruptly. That you can indeed do from OnClientError(). Hans.
Technical Details
Message-ID:
<3f2d851f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f29cebd$1@newsgroups.borland.com> <3f29d94d@newsgroups.borland.com> <3f29dd02$1@newsgroups.borland.com> <3f2a3040$1@newsgroups.borland.com> <3f2b2934$1@newsgroups.borland.com> <3f2b67c8@newsgroups.borland.com> <3f2c9856$1@newsgroups.borland.com> <3f2cc8eb$1@newsgroups.borland.com> <3f2d780e@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,9e6acf8dd63da257 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-03 15:04:04 PST Date: Sun, 03 Aug 2003 23:58:00 +0200 From: Hans Galema <j.m.galema.dontusethis@maartens.nl> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: BCB TCP IP component References: <3f29cebd$1@newsgroups.borland.com> <3f29d94d@newsgroups.borland.com> <3f29dd02$1@newsgroups.borland.com> <3f2a3040$1@newsgroups.borland.com> <3f2b2934$1@newsgroups.borland.com> <3f2b67c8@newsgroups.borland.com> <3f2c9856$1@newsgroups.borland.com> <3f2cc8eb$1@newsgroups.borland.com> <3f2d780e@newsgroups.borland.com> In-Reply-To: <3f2d780e@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.108.11 Message-ID: <3f2d851f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1059947807 129.125.108.11 (3 Aug 2003 14:56:47 -0700) Lines: 27 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail