Article View: borland.public.cppbuilder.internet.socket
Article #2251Re: Borland C++ 5 TServerSocket TimeOut
From: Remy Lebeau (TeamB)
Date: Thu, 06 Jul 2006 20:34
Date: Thu, 06 Jul 2006 20:34
27 lines
1982 bytes
1982 bytes
"Justin L Hudson" <justin.hudson@bepco.com> wrote in message
news:44ad61ce$1@newsgroups.borland.com...
> Also the clients connected have about a 5 second timer if they
> do not get data they will close() and try and reconnect again.
You should implement that scheme inside your server code as well. If the
server does not receive data from a client after while, then disconnect the
client. Then make your clients send data periodically to keep the
connection alive.
> I have a try {} and catch {} around 'SendBuf', but in some rare
> cases it will throw an "Invalid Integer" as the exception
SendBuf() does not throw that exception. You probably passed in an invalid
memory block. What is the actual exception class type and completely
Message? What does your sending code look like?
> Also happens with the ErrorCode being set to zero on 'OnClientError'
event.
All the more reason to suspect that the exception is occuring outside of the
socket altogether.
Gambit
Technical Details
Message-ID:
<44ad7444$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44ac0064@newsgroups.borland.com> <44ac15e3$1@newsgroups.borland.com> <44acf764$1@newsgroups.borland.com> <44ad4c7c$1@newsgroups.borland.com> <44ad61ce$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,43b3cea56f3f8096 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <44ac0064@newsgroups.borland.com> <44ac15e3$1@newsgroups.borland.com> <44acf764$1@newsgroups.borland.com> <44ad4c7c$1@newsgroups.borland.com> <44ad61ce$1@newsgroups.borland.com> Subject: Re: Borland C++ 5 TServerSocket TimeOut Date: Thu, 6 Jul 2006 13:34:14 -0700 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <44ad7444$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1152218180 68.69.17.41 (6 Jul 2006 13:36:20 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail