Article View: borland.public.cppbuilder.internet.socket
Article #3982Re: bcb ServerSocket
From: Jonathan Benedicto
Date: Wed, 20 Apr 2005 03:33
Date: Wed, 20 Apr 2005 03:33
24 lines
1762 bytes
1762 bytes
"Joel Guerra" <j.guerra@texasscenic.com> wrote in message news:42657f98$1@newsgroups.borland.com... > I am using TCustomWinSocket as a 1 client server..the program works > if the > client exits properly, If the server connection is lost due toe > wiring > disconnect, the server does > some cleanup,but then next the time the client connects, it goes to > a second > connection instead of my default TCPSock->Socket->Connections[0]. > If I look > at the ActiveConnections, I now see 2 connections...... > > How do I clobber the old connection so that I always have only 1 > active > connection? Have you tried checking to see if the TCPSock->Socket->Connections[0]->Connected is true, and if it is not, then calling TCPSock->Socket->Connections[0]->Close(). Just an idea. Jonathan
Technical Details
Message-ID:
<4265cd92$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42657f98$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,8f3aebf0a06ba50 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Jonathan Benedicto" <incorrect@no.server> Newsgroups: borland.public.cppbuilder.internet.socket References: <42657f98$1@newsgroups.borland.com> Subject: Re: bcb ServerSocket Date: Tue, 19 Apr 2005 23:33:40 -0400 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 69.158.118.184 Message-ID: <4265cd92$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1113968018 69.158.118.184 (19 Apr 2005 20:33:38 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail