twisted.news.nntp.UsenetClientProtocol(NNTPClient)
class documentationtwisted.news.nntp
View Source
(View In Hierarchy)
A client that connects to an NNTP server and asks for articles new since a certain time.
Method | __init__ | No summary |
Method | connectionMade | Called when a connection is made. |
Method | articleExists | Undocumented |
Method | gotNewNews | Override for notification when getNewNews() action is successful |
Method | getNewNewsFailed | Override for notification when getNewNews() action fails |
Method | gotArticle | Override for notification when fetchArticle() action is completed |
Inherited from _PauseableMixin (via NNTPClient, LineReceiver):
Method | pauseProducing | Undocumented |
Method | resumeProducing | Undocumented |
Method | stopProducing | Undocumented |
Inherited from _PauseableMixin (via NNTPClient, LineReceiver):
Method | pauseProducing | Undocumented |
Method | resumeProducing | Undocumented |
Method | stopProducing | Undocumented |
Inherited from _PauseableMixin (via NNTPClient, LineReceiver):
Method | pauseProducing | Undocumented |
Method | resumeProducing | Undocumented |
Method | stopProducing | Undocumented |
Inherited from _PauseableMixin (via NNTPClient, LineReceiver):
Method | pauseProducing | Undocumented |
Method | resumeProducing | Undocumented |
Method | stopProducing | Undocumented |
Inherited from _PauseableMixin (via NNTPClient, LineReceiver):
Method | pauseProducing | Undocumented |
Method | resumeProducing | Undocumented |
Method | stopProducing | Undocumented |
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.
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.
Override for notification when getNewNews() action is successful
Override for notification when getNewNews() action fails
Override for notification when fetchArticle() action is completed