Article View: news.software.nntp
Article #55835Re: Forecasting the posting's size
From: Jeremy
Date: Wed, 02 Jan 2002 00:31
Date: Wed, 02 Jan 2002 00:31
19 lines
1417 bytes
1417 bytes
Joshua <JoshuaIIII@hotmail.com> wrote: > received_len=RecvRaw(strBuf+received_total,len-received_total,0); > if (0==received_len) > return 0; //Error > received_total+=received_len; > > I have a question here.Is there any possibility that "0==received_len" > happens under heaven? I have test and found if the input stream is empty, > recv() just waits there for inputing. I guess maybe 0==received_len will > never occurs. If RecvRaw() is returning the result of recv() then you should expect a zero; if I'm not mistaken, you'll get one if the socket was disconnected from the other end. -- Jeremy | jeremy@exit109.com
Technical Details
Message-ID:
<1009931477.284195@ok-corral.gunslinger.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!saloon!newsbastardReferences:
<a0mi6f$qqr$1@mail.cn99.com> <20011230215952.153$nt@newsreader.com> <a0sldf$457$1@mail.cn99.com> <a0sp1o$8od$1@mail.cn99.com>Show Full Headers
Complete Article Headers
Message-ID: <1009931477.284195@ok-corral.gunslinger.net> Subject: Re: Forecasting the posting's size Date: Wed, 02 Jan 2002 00:31:17 +0000 From: Jeremy <jeremy@exit109.com> References: <a0mi6f$qqr$1@mail.cn99.com> <20011230215952.153$nt@newsreader.com> <a0sldf$457$1@mail.cn99.com> <a0sp1o$8od$1@mail.cn99.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!saloon!newsbastard Newsgroups: news.software.nntp Organization: There Is No Organization Lines: 18 X-Newsreader: trn 4.0-test76 (Apr 2, 2001) X-Meow: Meow