Article View: borland.public.cppbuilder.internet.socket
Article #3237Re: i need ideas/comments with tclientsocket
From: Hans Galema
Date: Mon, 31 Oct 2005 16:30
Date: Mon, 31 Oct 2005 16:30
14 lines
1585 bytes
1585 bytes
Jonathan Benedicto wrote: > Please could you explain why ? I looked at my code again, and it never > reads more than the message said its size was. Indeed. That is correct. But your code should read all bytes indicated by ReceiveLength(). Not the minimum with the messagelength. So then first it would go wrong. If your code runs fine then you probably have senders that do not sent more then one message at once. For instance a client that waits to send a next command until the server responded. Hans.
Technical Details
Message-ID:
<436646de$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<43662baf$1@newsgroups.borland.com> <43663272$1@newsgroups.borland.com> <43664213$1@newsgroups.borland.com> <43664528$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,5c33b8c6a9ca7fdb X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 31 Oct 2005 17:30:16 +0100 From: Hans Galema <notused@notused.nl> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: i need ideas/comments with tclientsocket References: <43662baf$1@newsgroups.borland.com> <43663272$1@newsgroups.borland.com> <43664213$1@newsgroups.borland.com> <43664528$1@newsgroups.borland.com> In-Reply-To: <43664528$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 145.98.201.248 Message-ID: <436646de$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1130776286 145.98.201.248 (31 Oct 2005 08:31:26 -0700) Lines: 14 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail