🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Send buffer from server to a client

#4496
From: Remy Lebeau (TeamB)
Date: Fri, 28 Jan 2005 18:38
24 lines
1865 bytes
"Hans Galema" <notused@notused.nl> wrote in message
news:41fa1e77$1@newsgroups.borland.com...

> And what would one do with them ?

The same as you would do in non-blocking mode - read the current data and
process it as needed.

> Ok. It can. But that makes no sense for me. If I choose for
> a non-blocking socket then that is for a non blocking application.
> If I want my application to block, that is do a read right after a
> write, then I choose a blocking socket.

That is your perogative.  Sockets are not limited to such usage only,
though.

> If I remember well that was in an OnRead event where you
> read more than ReceiveLength() indicated.

That was one of my examples, but I have posted other kinds as well.


Gambit
Technical Details
Message-ID: <41fa861b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41f90c54@newsgroups.borland.com> <41f91223$1@newsgroups.borland.com> <41f91ff2@newsgroups.borland.com> <41f92451$1@newsgroups.borland.com> <41f93b7a$1@newsgroups.borland.com> <41f942e7$1@newsgroups.borland.com> <41f95700$1@newsgroups.borland.com> <41fa1e77$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,2b30b06ce9be7f64
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: <41f90c54@newsgroups.borland.com> <41f91223$1@newsgroups.borland.com> <41f91ff2@newsgroups.borland.com> <41f92451$1@newsgroups.borland.com> <41f93b7a$1@newsgroups.borland.com> <41f942e7$1@newsgroups.borland.com> <41f95700$1@newsgroups.borland.com> <41fa1e77$1@newsgroups.borland.com>
Subject: Re: Send buffer from server to a client
Date: Fri, 28 Jan 2005 10:38:57 -0800
Lines: 26
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: <41fa861b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1106937371 68.69.17.41 (28 Jan 2005 10:36:11 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail