Home | Trees | Index | Help |
---|
Package twisted :: Package protocols :: Module nntp :: Class UsenetClientProtocol |
|
BaseProtocol
--+ |Protocol
--+ |LineReceiver
--+ |NNTPClient
--+ | UsenetClientProtocol
Method Summary | |
---|---|
Fetch all new articles from the given groups since the given date and dump them into the given storage. | |
articleExists(self,
exists,
article)
| |
(Deprecated) (inherited from Protocol )
| |
Called when the connection is shut down. (inherited from Protocol )
| |
Called when a connection is made. | |
Protocol.dataReceived. (inherited from LineReceiver )
| |
Get the complete article with the specified index (or the currently selected article if index is '') or Message-ID from the server. (inherited from NNTPClient )
| |
Get the body for the specified article (or the currently selected article if index is '') from the server. (inherited from NNTPClient )
| |
Get group information for the specified group from the server. (inherited from NNTPClient )
| |
Request a list of all news groups from the server. (inherited from NNTPClient )
| |
Get the header for the specified article (or the currently selected article if index is '') from the server. (inherited from NNTPClient )
| |
Get the names of all new groups created/added to the server since the specified date - in seconds since the ecpoh, GMT - optionally restricted to the given distributions. (inherited from NNTPClient )
| |
Get the Message-IDs for all new news posted to any of the given groups since the specified date - in seconds since the epoch, GMT - optionally restricted to the given distributions. (inherited from NNTPClient )
| |
Request the overview format from the server. (inherited from NNTPClient )
| |
Request a list of the groups it is recommended a new user subscribe to. (inherited from NNTPClient )
| |
Request a specific header from the server for an article or range of articles. (inherited from NNTPClient )
| |
Override for notification when fetchGroups() action fails (inherited from NNTPClient )
| |
Override for notification when fetchArticle() action fails (inherited from NNTPClient )
| |
Override for notification when fetchBody() action fails (inherited from NNTPClient )
| |
Override for notification when fetchGroup() action fails (inherited from NNTPClient )
| |
Override for notification when fetchHead() action fails (inherited from NNTPClient )
| |
Override for notification when getNewGroups() action fails (inherited from NNTPClient )
| |
getNewNewsFailed(self,
reason)
| |
Override for notification when fetchOverview() action fails (inherited from NNTPClient )
| |
Override for notification when fetchSubscriptions() action fails (inherited from NNTPClient )
| |
Override for notification when getXHeader() action fails (inherited from NNTPClient )
| |
Override for notification when fetchGroups() action is completed (inherited from NNTPClient )
| |
Override for notification when fetchArticle() action is completed | |
Override for notification when fetchBody() action is completed (inherited from NNTPClient )
| |
Override for notification when fetchGroup() action is completed (inherited from NNTPClient )
| |
Override for notification when fetchHead() action is completed (inherited from NNTPClient )
| |
Override for notification when getNewGroups() action is successful (inherited from NNTPClient )
| |
Override for notification when getNewNews() action is successful | |
Override for notification when fetchOverview() action is completed (inherited from NNTPClient )
| |
Override for notification when fetchSubscriptions() action is completed (inherited from NNTPClient )
| |
Override for notification when getXHeader() action is successful (inherited from NNTPClient )
| |
Called when the maximum line length has been reached. (inherited from LineReceiver )
| |
Override this for when each line is received. (inherited from NNTPClient )
| |
Attempt to post an article with the specified text to the server. (inherited from NNTPClient )
| |
Override for notification when postArticle() action is successful (inherited from NNTPClient )
| |
Override for notification when postArticle() action fails (inherited from NNTPClient )
| |
quit(self)
(inherited from NNTPClient )
| |
Override this for when raw data is received. (inherited from LineReceiver )
| |
Sends a line to the other end of the connection. (inherited from LineReceiver )
| |
Sets the line-mode of this receiver. (inherited from LineReceiver )
| |
Sets the raw mode of this receiver. (inherited from LineReceiver )
| |
Set the mode to STREAM, suspending the normal "lock-step" mode of communications. (inherited from NNTPClient )
| |
Override for notification when setStream() action fails (inherited from NNTPClient )
| |
Override for notification when setStream() action is successful (inherited from NNTPClient )
|
Method Details |
---|
__init__(self,
groups,
date,
storage)
Fetch all new articles from the given groups since the given date and
dump them into the given storage. groups is a list of group names. date
is an integer or floating point representing seconds since the epoch
(GMT). storage is any object that implements the NewsStorage
interface.
|
connectionMade(self)Called when a connection is made. This may be considered the initializer of the protocol, because it is called when the connection is completed. For clients, this is called once the connection to the server has been established; for servers, this is called after an accept() call stops blocking and a socket has been received. If you need to send any greeting or initial message, do it here.
|
gotArticle(self, article)Override for notification when fetchArticle() action is completed
|
gotNewNews(self, news)Override for notification when getNewNews() action is successful
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Sat Feb 15 21:18:01 2003 | http://epydoc.sf.net |