Article View: borland.public.cppbuilder.internet.socket
Article #3558Re: Client / Server Socket....
From: Hans Galema
Date: Tue, 30 Aug 2005 10:00
Date: Tue, 30 Aug 2005 10:00
23 lines
2050 bytes
2050 bytes
Paul wrote: One thing I had not realised, or taken on board, > was that the client will get an exception if it opens the socket and the > server isn't running, so the app has to retry at regular intervals. Errormessages are different with a nonexistent host or nonexistent server. > Also I > found that you have to process the read event (Socket->ReceiveBuf) otherwise > you don't get another event signaled. You have to use Socket->ReadBuf() for all the bytes indicated by Socket->ReceiveLength(). > There is one question though at this moment in time. The OnWrite event, > does that simply notify the application that it can start writing to the > socket after connection? Everytime that SendBuf() returns and did not write all the bytes you could wait for an OnWrite event. This indicates that a successive SendBuf() could be done then. Hans.
Technical Details
Message-ID:
<43142e10$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.inode.at!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43058ac8$1@newsgroups.borland.com> <4306110f$1@newsgroups.borland.com> <4306da89@newsgroups.borland.com> <430a07da$1@newsgroups.borland.com> <430a2cfe$1@newsgroups.borland.com> <431414c7$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,c4f84c0147b64fb7 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 30 Aug 2005 12:00:18 +0200 From: Hans Galema <notused@notused.nl> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Client / Server Socket.... References: <43058ac8$1@newsgroups.borland.com> <4306110f$1@newsgroups.borland.com> <4306da89@newsgroups.borland.com> <430a07da$1@newsgroups.borland.com> <430a2cfe$1@newsgroups.borland.com> <431414c7$1@newsgroups.borland.com> In-Reply-To: <431414c7$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.201.248 Message-ID: <43142e10$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1125395984 129.125.201.248 (30 Aug 2005 02:59:44 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.inode.at!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail