🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: how to send buffer size message and buffer

#4945
From: Remy Lebeau (TeamB)
Date: Fri, 19 Nov 2004 09:52
15 lines
1811 bytes
"Vladimir Stefanovic" <antivari@ptt.yu> wrote in message
news:419d9e5b$1@newsgroups.borland.com...

> When TClientSocket is ctNonBlocking and TServerSocket
> is stThreadBlocking, should I use that concept?

It doesn't matter whether the modes are the same or not on each end.  The
code is specific to the local socket endpoint that it is accessing.
Checking for WSAEWOULDBLOCK only applies to non-blocking mode, though.
However, you should always loop the reading and writing, at least, because
Send/ReceiveBuf() can return less than the specified amount in either mode.


Gambit
Technical Details
Message-ID: <419dc2d0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!63.218.45.10.MISMATCH!newshosting.com!nx01.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <419b3068$1@newsgroups.borland.com> <419b32cf$1@newsgroups.borland.com> <419b934b$1@newsgroups.borland.com> <419cbb08$1@newsgroups.borland.com> <419cd9b2$1@newsgroups.borland.com> <419cf046@newsgroups.borland.com> <419cfe32$1@newsgroups.borland.com> <419d9e5b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,e51687cce2165a07
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: <419b3068$1@newsgroups.borland.com> <419b32cf$1@newsgroups.borland.com> <419b934b$1@newsgroups.borland.com> <419cbb08$1@newsgroups.borland.com> <419cd9b2$1@newsgroups.borland.com> <419cf046@newsgroups.borland.com> <419cfe32$1@newsgroups.borland.com> <419d9e5b$1@newsgroups.borland.com>
Subject: Re: how to send  buffer size message and buffer 
Date: Fri, 19 Nov 2004 01:52:02 -0800
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: <419dc2d0$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1100858064 68.69.17.41 (19 Nov 2004 01:54:24 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!63.218.45.10.MISMATCH!newshosting.com!nx01.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail