Article View: borland.public.cppbuilder.internet.socket
Article #4118Re: Help using sockets.....
From: Paul
Date: Thu, 07 Apr 2005 08:08
Date: Thu, 07 Apr 2005 08:08
28 lines
2070 bytes
2070 bytes
I've only had a few minutes to play with this, and now I have to go off to
meetings all day.
The server thread still returns zero on the read:
int iRead = Stream->Read(pBuf, BufSize);
if( iRead <= 0 )
return false;
And the client display the following in the memo. There's no write event,
so perhaps I haven't initialised something and the
TForm2::ClientSocket1Connect + TForm1::Write are causing a write before its
ready.
Connect Event Handler
..Port Active
Client Error: 10054
Disconnect Event Handler
..Port not Active
Paul
"Paul" <plmacca@clara.co.uk> wrote in message
news:4254d272$1@newsgroups.borland.com...
>
> This is going to take a little while to digest and try out. I'll let you
> know how I get on. Many thanks for your input.
>
Technical Details
Message-ID:
<4254ea26$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!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> <4254244a$1@newsgroups.borland.com> <425426cb$1@newsgroups.borland.com> <425445db@newsgroups.borland.com> <425448ec$1@newsgroups.borland.com> <4254657c@newsgroups.borland.com> <4254d272$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 Reply-To: "Paul" <plmacca@clara.co.uk> From: "Paul" <plmacca@clara.co.uk> 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> <4254244a$1@newsgroups.borland.com> <425426cb$1@newsgroups.borland.com> <425445db@newsgroups.borland.com> <425448ec$1@newsgroups.borland.com> <4254657c@newsgroups.borland.com> <4254d272$1@newsgroups.borland.com> Subject: Re: Help using sockets..... Date: Thu, 7 Apr 2005 09:08:45 +0100 Lines: 30 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: 81.129.190.34 Message-ID: <4254ea26$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1112861222 81.129.190.34 (7 Apr 2005 01:07:02 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail