🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4112

Re: Help using sockets.....

#4112
From: Paul
Date: Wed, 06 Apr 2005 19:50
20 lines
1991 bytes
"Hans Galema" wrote

>             if (pStream->WaitForData(pStream->TimeOut))

Tried this, no difference.

I also put Memo1 "debug" statements in the client application to check the
SendText() return value, and that seems to be ok (31 bytes).

I added another "debug" statement so that it recorded if the port was still
open on connecting (Button1Click), and it's never open.  So I commented out
the first ClientSocket->Close() in the server application thread, and this
time the client application does say the port is open (Button1Click).  But
even with this change, it still never gets to the following line in the
server application, so the pStream->Read() must always be returning zero:

                  // Back again to Client
                  pStream->Write( buffer, sizeof(buffer));

Paul.
Technical Details
Message-ID: <42543d02$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.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
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> <42542cbe$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> <42542cbe$1@newsgroups.borland.com>
Subject: Re: Help using sockets.....
Date: Wed, 6 Apr 2005 20:50:00 +0100
Lines: 22
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.132.198.127
Message-ID: <42543d02$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1112816898 81.132.198.127 (6 Apr 2005 12:48:18 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.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