From 94adab5e17e2e0a5ad040752f99670081956ba50 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 2 Jun 1997 17:27:50 +0000 Subject: Added date, xgtitle, xover, xpath (AMK). --- Doc/lib/libnntplib.tex | 32 ++++++++++++++++++++++++++++++++ Doc/libnntplib.tex | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/Doc/lib/libnntplib.tex b/Doc/lib/libnntplib.tex index feec27a..2641d82 100644 --- a/Doc/lib/libnntplib.tex +++ b/Doc/lib/libnntplib.tex @@ -206,6 +206,38 @@ Send an \samp{IHAVE} command. If the response is not an error, treat \var{file} exactly as for the \code{post()} method. \end{funcdesc} +\begin{funcdesc}{date}{} +Return a triple \code{(\var{response}, \var{date}, \var{time})}, +containing the current date and time in a form suitable for the +\code{newnews} and \code{newgroups} methods. +This is an optional NNTP extension, and may not be supported by all +servers. +\end{funcdesc} + +\begin{funcdesc}{xgtitle}{name} +Process an XGTITLE command, returning a pair \code{(\var{response}, +\var{list}}, where \var{list} is a list of tuples containing +\code{(\var{name}, \var{title})}. +% XXX huh? Should that be name, description? +This is an optional NNTP extension, and may not be supported by all +servers. +\end{funcdesc} + +\begin{funcdesc}{xover}{start\, end} +Return a pair \code{(\var{resp}, \var{list})}. \var{list} is a list +of tuples, one for each article in the range delimited by the \var{start} +and \var{end} article numbers. Each tuple is of the form +\code{(\var{article number}, \var{subject}, \var{poster}, \var{date}, \var{id}, \var{references}, \var{size}, \var{lines})}. +This is an optional NNTP extension, and may not be supported by all +servers. +\end{funcdesc} + +\begin{funcdesc}{xpath}{id} +Return a pair \code{(\var{resp}, \var{path})}, where \var{path} is the +directory path to the article with message ID \var{id}. This is an +optional NNTP extension, and may not be supported by all servers. +\end{funcdesc} + \begin{funcdesc}{quit}{} Send a \samp{QUIT} command and close the connection. Once this method has been called, no other methods of the NNTP object should be called. diff --git a/Doc/libnntplib.tex b/Doc/libnntplib.tex index feec27a..2641d82 100644 --- a/Doc/libnntplib.tex +++ b/Doc/libnntplib.tex @@ -206,6 +206,38 @@ Send an \samp{IHAVE} command. If the response is not an error, treat \var{file} exactly as for the \code{post()} method. \end{funcdesc} +\begin{funcdesc}{date}{} +Return a triple \code{(\var{response}, \var{date}, \var{time})}, +containing the current date and time in a form suitable for the +\code{newnews} and \code{newgroups} methods. +This is an optional NNTP extension, and may not be supported by all +servers. +\end{funcdesc} + +\begin{funcdesc}{xgtitle}{name} +Process an XGTITLE command, returning a pair \code{(\var{response}, +\var{list}}, where \var{list} is a list of tuples containing +\code{(\var{name}, \var{title})}. +% XXX huh? Should that be name, description? +This is an optional NNTP extension, and may not be supported by all +servers. +\end{funcdesc} + +\begin{funcdesc}{xover}{start\, end} +Return a pair \code{(\var{resp}, \var{list})}. \var{list} is a list +of tuples, one for each article in the range delimited by the \var{start} +and \var{end} article numbers. Each tuple is of the form +\code{(\var{article number}, \var{subject}, \var{poster}, \var{date}, \var{id}, \var{references}, \var{size}, \var{lines})}. +This is an optional NNTP extension, and may not be supported by all +servers. +\end{funcdesc} + +\begin{funcdesc}{xpath}{id} +Return a pair \code{(\var{resp}, \var{path})}, where \var{path} is the +directory path to the article with message ID \var{id}. This is an +optional NNTP extension, and may not be supported by all servers. +\end{funcdesc} + \begin{funcdesc}{quit}{} Send a \samp{QUIT} command and close the connection. Once this method has been called, no other methods of the NNTP object should be called. -- cgit v0.12