Article View: borland.public.cppbuilder.internet.socket
Article #5266Re: Client: ctNonBlocking -> Server: stThreadBlocking
From: Remy Lebeau (TeamB)
Date: Mon, 27 Sep 2004 20:56
Date: Mon, 27 Sep 2004 20:56
17 lines
1745 bytes
1745 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:41587de7@newsgroups.borland.com... > That is probably because you are not treating -1 correctly to begin > with. When -1 is returned AND the OnError event is not triggered, > then you have to wait for the OnWrite event and then seek your > stream backwards and resend the SAME data again. You are not > currently doing any of that. I stand corrected. You are seeking your stream properly (although as you can see in my earlier examples, you don't need to seek or read the stream at all, you can access the raw stream data directly). But you are still not handling -1 properly. Gambit
Technical Details
Message-ID:
<41587e8d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<415856d5@newsgroups.borland.com> <41586b81@newsgroups.borland.com> <415872f2@newsgroups.borland.com> <41587843$1@newsgroups.borland.com> <41587aef@newsgroups.borland.com> <41587de7@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,b3058d6528d1daa1 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: <415856d5@newsgroups.borland.com> <41586b81@newsgroups.borland.com> <415872f2@newsgroups.borland.com> <41587843$1@newsgroups.borland.com> <41587aef@newsgroups.borland.com> <41587de7@newsgroups.borland.com> Subject: Re: Client: ctNonBlocking -> Server: stThreadBlocking Date: Mon, 27 Sep 2004 13:56:49 -0700 Lines: 19 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: <41587e8d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1096318605 68.69.17.41 (27 Sep 2004 13:56:45 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail