🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TClientSocket in blocking mode ...

#5366
From: Andreas Tirok
Date: Sun, 22 Aug 2004 09:23
43 lines
2137 bytes
Hello Gambit,

"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> schrieb im
Newsbeitrag news:41263fe9$1@newsgroups.borland.com...
>
> "Andreas Tirok" <at1712@web.de> wrote in message
> news:4125db6b@newsgroups.borland.com...
>
> >     if (m_pStream->Size > 0)
>
> The Size property has no meaning to TWinSocketStream at all, it is not
> implemented and always return 0.  The only thing you can do is Read() from
> the socket and see how many bytes were actually read.

Hmmm, I didn't got this from the documentation ... grrrr

>
> >     l_Bytes = m_pStream->Read(m_ReceiveBuf, sizeof(m_ReceiveBuf)-1);
>
> Where and how is m_ReceiveBuf declared?

It is a class member - all variables starting with m_ are class members.

class SecomClientReadThread : public TThread
{
 private:
  bool    m_InSidePacket;
  bool    m_GotEtx;
  unsigned char  m_Bcc;
  char    m_ReceiveBuf[2];
  char    m_ReceivedBlock[10240];
  char    *m_pReceive;
  int     m_Length;

.....
};

Hmmm, is it possible, that the server and the client - when both running in
blocking mode - can deadlock?

Thank you and Regards.

Andreas Tirok
Technical Details
Message-ID: <4128661f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.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
References: <4125bdc6$1@newsgroups.borland.com> <4125db6b@newsgroups.borland.com> <41263fe9$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,b0259efaad300f7e
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Andreas Tirok" <at1712@web.de>
From: "Andreas Tirok" <at1712@web.de>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <4125bdc6$1@newsgroups.borland.com> <4125db6b@newsgroups.borland.com> <41263fe9$1@newsgroups.borland.com>
Subject: Re: TClientSocket in blocking mode ...
Date: Sun, 22 Aug 2004 11:23:43 +0200
Lines: 47
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 80.140.196.203
Message-ID: <4128661f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1093166623 80.140.196.203 (22 Aug 2004 02:23:43 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.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