| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
NNTP Client-Server Communication Process: News Posting and Access (Page 3 of 4) News Access Methods There are several different ways that the newsreader can access messages in a group, depending on how it is programmed and on what the user of the software wants. This is the brute force technique: the client simply requests that the server send it all the messages in the group. This is done by issuing the ARTICLE command to select the first current message in the group, using the first article number returned by the GROUP command. This sets the server's internal pointer for the session to point to the first article, so it can be retrieved. The NEXT command is then used to advance the pointer to the next message, and the ARTICLE command to retrieve it. This continues until the entire group has been read. Figure 313 illustrates the process.
The retrieved messages are stored by the newsreader and available for instant access by the user. This method is most suitable for relatively small newsgroups and/or users with fast Internet connections. Since downloading an entire newsgroup is time-consuming, many newsreaders compromise by downloading the headers of all messages instead of the full message. The process is the same as for full newsgroup retrieval, but the HEAD command is used to retrieve just an article's headers instead of the ARTICLE command. This takes less time than retrieving each message in its entirety. The XHDR command extension can also be used, if the server supports it, to more efficiently retrieve only a subset of the headers for the messages, such as the subject line and author. It is also possible to retrieve a single message from a group, using the ARTICLE command and specifying the article's message identifier.
Home - Table Of Contents - Contact Us The TCP/IP Guide (http://www.TCPIPGuide.com) Version 3.0 - Version Date: September 20, 2005 © Copyright 2001-2005 Charles M. Kozierok. All Rights Reserved. Not responsible for any loss resulting from the use of this site. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||