Article View: borland.public.cppbuilder.internet.socket
Article #4265Re: Demos
From: Hans Galema
Date: Fri, 11 Mar 2005 18:07
Date: Fri, 11 Mar 2005 18:07
19 lines
1592 bytes
1592 bytes
Michele Santucci wrote: > are there any reliable example on TSocketClient and TSocketServer usage? > I have to write a client server application that exchange binary data over a > TCP network. Not a comlete client or server. But code to reliably send and receive data for blocking as well as non-blocking TServerSocket/TClientSocket has been published many times. You can even read some thgreads now in this group that contain nice code. > I did it but I got lots of problems. > It seems that after a client write the server got loads of read events but > most of those > events dont supply data (ReceiveLength() returns 0). Don't care for ReceiveLength() == 0 . Then don't read. Hans.
Technical Details
Message-ID:
<4231ded4@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4231cced@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ac22febc451b7e17 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 11 Mar 2005 19:07:32 +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: Demos References: <4231cced@newsgroups.borland.com> In-Reply-To: <4231cced@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.201.248 Message-ID: <4231ded4@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1110564564 129.125.201.248 (11 Mar 2005 10:09:24 -0800) Lines: 19 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail