Article View: news.software.nntp
Article #61282Re: Custom Client Software - Last Quick Question
From: Curt Welch
Date: Thu, 10 Oct 2002 18:24
Date: Thu, 10 Oct 2002 18:24
34 lines
2716 bytes
2716 bytes
t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t (DS) wrote: > Last one, does anyone recommend/not recommend sending more than one > command on a command string. > > ie- GROUP alt.testCR/LF HEAD xxxxxxCR/LF > > I myself prefers to wait for the response code from a command before > sending any additional commands. This may be an issue depending on your > connection speed, and I am aiming at broadband users. In the above example, if the xxxxx argument for HEAD is number, you would never want to send them together like that. That's becaues the GROUP command may fail, leving the current group what it was before the command, so the HEAD command may end up returning a HEADER for article NNN is the previous group. You could of course ignore the header which came back in that case (if one came back at all), but I see no reaon to do that. Mostly, clients will always wait for a response to commands. There are a few times where you logically don't have to wait (like if you were doing a string of stat commands, or a string of group commands where you just wnated to see the result and didn't need it to set the current group). If you have a bulk application like that, it will run much faster if you send the entire batch (say you wanted to do a stat command on 1000 artciels), but it's harder to code that stuff and is seldom done. So for sure, start off by always waiting for the response and then look for times where you feel you might want to do something tricker later. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20021010142425.883$Mr@newsreader.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!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<92A385EF1idispcom@64.8.1.226>Show Full Headers
Complete Article Headers
Message-ID: <20021010142425.883$Mr@newsreader.com>
Subject: Re: Custom Client Software - Last Quick Question
Date: Thu, 10 Oct 2002 18:24:26 +0000
From: curt@kcwc.com (Curt Welch)
References: <92A385EF1idispcom@64.8.1.226>
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!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com JwDNo1t10Edsa9nbcS0K3s4@CV4W3l3Qb9B./_w8_8-1==,3p
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 33