Article View: borland.public.cppbuilder.internet.socket
Article #4269TClientSocket ReceiveLength() returns large value
From: Gary Johnson
Date: Mon, 14 Mar 2005 20:24
Date: Mon, 14 Mar 2005 20:24
7 lines
1477 bytes
1477 bytes
i am using TClientSocket to receive data in NON-Blocking mode. I use Socket->ReceiveLength() before Socket->ReceiveBuf() and everything works great until i get a large value returned by ReceiveLength() over 2000. The subsequent call to ReceiveBuf() returns a legitimate value, but then all communication stops even though the Active property is still "true." anybody know why the communication has stopped?
Technical Details
Message-ID:
<4235f30d@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx02.iad01.newshosting.com!diablo.voicenet.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,d813a4525d839272,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Gary Johnson" <gjohnson@cinele.com> From: "Gary Johnson" <gjohnson@cinele.com> Newsgroups: borland.public.cppbuilder.internet.socket Subject: TClientSocket ReceiveLength() returns large value Date: Mon, 14 Mar 2005 15:24:46 -0500 Lines: 10 Organization: Cincinnati Electronics 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.117.195.80 Message-ID: <4235f30d@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1110831885 66.117.195.80 (14 Mar 2005 12:24:45 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx02.iad01.newshosting.com!diablo.voicenet.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail