Article View: borland.public.cppbuilder.internet.socket
Article #4486Re: Send buffer from server to a client
From: Remy Lebeau (TeamB)
Date: Thu, 27 Jan 2005 19:08
Date: Thu, 27 Jan 2005 19:08
21 lines
1798 bytes
1798 bytes
"Hans Galema" <notused@notused.nl> wrote in message news:41f92451$1@newsgroups.borland.com... > So your client is non-blocking. That has nothing to do with it. The TClientSocket could be usd in blocking mode and still use its OnRead event. > If it was blocking then your client could do a ReadBufer() rigth > after the WriteBuffer(). At least if the server will send always after > it received a message from the client. That has nothing to do with blocking vs. non-blocking. And there is nothing preventing the server from sending unsolicited data that the client would read asynchronously from any writing. It all depends on the communication protocol that Vinicius is trying to implement for the actual data, not the reading/writing mode used. The same data is read/written in either mode. Gambit
Technical Details
Message-ID:
<41f93b7a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41f90c54@newsgroups.borland.com> <41f91223$1@newsgroups.borland.com> <41f91ff2@newsgroups.borland.com> <41f92451$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> Subject: Re: Send buffer from server to a client Date: Thu, 27 Jan 2005 11:08:13 -0800 Lines: 23 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: <41f93b7a$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1106852730 68.69.17.41 (27 Jan 2005 11:05:30 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail