Article View: borland.public.cppbuilder.internet.socket
Article #1227Bug in TIdTCPClient ???
From: Umberto Spagnoli
Date: Mon, 12 Mar 2007 10:53
Date: Mon, 12 Mar 2007 10:53
21 lines
1480 bytes
1480 bytes
I'm using Indy components v. 9.0.50 bundled with BDS 2006. When I send the ETX char (ASCII char 0x03) through a TIdTCPClient component, I get 29 characters in my receive buffer. I tried with different methods (WriteBuffer, WriteChar, WriteCardinal) but nothing changed. Is this a bug? Is there any workaround? Let's call ITcp the TIdTCPClient Component: int len; ...... ITcp->WriteInteger(3, true); ioctlsocket ((SOCKET)ITcp->Socket->Binding->Handle, FIONREAD, &((unsigned long)len)); ..... len value is 29 after executing these lines Thanks in advance for your replies Umberto
Technical Details
Message-ID:
<45f530f7@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ee03d59ef261bda0,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Umberto Spagnoli" <jumby@tiscali.it> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Bug in TIdTCPClient ??? Date: Mon, 12 Mar 2007 11:53:47 +0100 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 217.133.112.50 Message-ID: <45f530f7@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1173696759 217.133.112.50 (12 Mar 2007 03:52:39 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail