Article View: borland.public.cppbuilder.internet.socket
Article #4113Re: Help using sockets.....
From: Remy Lebeau (TeamB)
Date: Wed, 06 Apr 2005 20:23
Date: Wed, 06 Apr 2005 20:23
15 lines
1550 bytes
1550 bytes
"Paul" <plmacca@clara.co.uk> wrote in message news:42542096$1@newsgroups.borland.com... > Every time the server gets data it drops into the client socket > close(), snippet below, which is in the TMyServerThread. If you are using a TWinSocketStream, then you are supposed to be calling its WaitForData() method before calling Read(), if you are not already. If WaitForData() returns true, then you are guaranteed to receive data immediately in the Read(), unless the socket was actually disconnected, in which case Read() will return 0 immediately instead. Gambit
Technical Details
Message-ID:
<425444f9@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<425388a2@newsgroups.borland.com> <425396df$1@newsgroups.borland.com> <4254080d$1@newsgroups.borland.com> <42542096$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,b9337a02b76d7efd 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: <425388a2@newsgroups.borland.com> <425396df$1@newsgroups.borland.com> <4254080d$1@newsgroups.borland.com> <42542096$1@newsgroups.borland.com> Subject: Re: Help using sockets..... Date: Wed, 6 Apr 2005 13:23:44 -0700 Lines: 17 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: <425444f9@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1112818937 68.69.17.41 (6 Apr 2005 13:22:17 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail