Article View: news.software.nntp
Article #56241Re: How recv() determines the receiving is finished?
From: Joshua
Date: Mon, 28 Jan 2002 02:25
Date: Mon, 28 Jan 2002 02:25
15 lines
1659 bytes
1659 bytes
OK, I will check them by your advice. "Russ Allbery" <rra@stanford.edu> wrote in message news:ylsn8ro9o0.fsf@windlord.stanford.edu... > Joshua <JoshuaIIII@hotmail.com> writes: > > There must be other way for this. > > Ah, now I understand what you're looking for. > I don't have a simple example, but you can look at the main loop of most > servers and see something involving non-blocking I/O and a select loop. > See, for instance CHANreadloop() in innd/chan.c in the INN source tree.
Technical Details
Message-ID:
<a32if6$rpp$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!newsfeed.stanford.edu!headwall.stanford.edu!hub1.nntpserver.com!newsfeed01.sul.t-online.de!t-online.de!news.cn99.com!not-for-mailReferences:
<a30rss$f0j$1@mail.cn99.com> <yly9iju1i5.fsf@windlord.stanford.edu> <a31khk$895$1@mail.cn99.com> <ylsn8ro9o0.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <a32if6$rpp$1@mail.cn99.com> Subject: Re: How recv() determines the receiving is finished? Date: Mon, 28 Jan 2002 10:25:36 +0800 From: "Joshua" <JoshuaIIII@hotmail.com> References: <a30rss$f0j$1@mail.cn99.com> <yly9iju1i5.fsf@windlord.stanford.edu> <a31khk$895$1@mail.cn99.com> <ylsn8ro9o0.fsf@windlord.stanford.edu> 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!newsfeed.stanford.edu!headwall.stanford.edu!hub1.nntpserver.com!newsfeed01.sul.t-online.de!t-online.de!news.cn99.com!not-for-mail Newsgroups: news.software.nntp Organization: Bentium Ltd. (CN99) Lines: 14 NNTP-Posting-Host: 61.156.68.41 X-Trace: mail.cn99.com 1012190507 28473 61.156.68.41 (28 Jan 2002 04:01:47 GMT) X-Complaints-To: usenet@news.cn99.com NNTP-Posting-Date: Mon, 28 Jan 2002 04:01:47 +0000 (UTC) X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200