🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3984

Re: bcb ServerSocket

#3984
From: Joel Guerra
Date: Wed, 20 Apr 2005 13:38
37 lines
2289 bytes
Thanks, this works most of the time, but I still have a problems every now
and again if I pull the enet cable out.  I wonder if a hardware failure is
different than the client software shutting down, because the server ALWAYS
works if the client is shutdown....If I have a cabling fault, server doens't
always gracefully reset the connection.

Joel

"Jonathan Benedicto" <incorrect@no.server> wrote in message
news:4265cd92$1@newsgroups.borland.com...
> "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: <42665b5b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <42657f98$1@newsgroups.borland.com> <4265cd92$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
Reply-To: "Joel Guerra" <j.guerra@texasscenic.com>
From: "Joel Guerra" <j.guerra@texasscenic.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <42657f98$1@newsgroups.borland.com> <4265cd92$1@newsgroups.borland.com>
Subject: Re: bcb ServerSocket
Date: Wed, 20 Apr 2005 08:38:07 -0500
Lines: 40
Organization: Texas Scenic Company
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 66.118.7.42
Message-ID: <42665b5b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1114004315 66.118.7.42 (20 Apr 2005 06:38:35 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail