Article View: borland.public.cppbuilder.nativeapi
Article #14786Re: BCB TCP IP component
From: Chris
Date: Sun, 03 Aug 2003 05:06
Date: Sun, 03 Aug 2003 05:06
19 lines
2237 bytes
2237 bytes
On Client Sockets this wouldn't be a problem, but on Server Sockets you have
multple sockets you receive messages from.
So my problem would probably be that I have an OnClientRead event in my
TServerSocket that doesn't distinguish and create seperate messages between
two different client sockets it receives data from, but just uses the data
received all as one message?
So I would have to re-write the OnRead event to handle each Socket being
received from inside a TServerSocket seperately?
When a client abruptly disconnects, that would be fatal, but it will throw
an exception. I can use this exception to reset the message I was receiving
and free the memory, my problem is... Where would I put the try{} catch()
statement to catch this general exception, as no one line of code would
cause it? It can't be on the project source cpp file, although that would
work, it has to be more localized, in the TCP data transfer class cpp file,
for all instances of the class created from the class declared in the cpp
file.
Technical Details
Message-ID:
<3f2c9856$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!demon!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!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>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-02 22:09:14 PST From: "Chris" <Chris8852@adelphia.net> Newsgroups: borland.public.cppbuilder.nativeapi 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> Subject: Re: BCB TCP IP component Date: Sun, 3 Aug 2003 01:06:29 -0400 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 68.65.164.124 Message-ID: <3f2c9856$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1059887190 68.65.164.124 (2 Aug 2003 22:06:30 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!demon!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail