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)
| |
Called when a connection is made. | |
getNewNewsFailed(self,
reason)
| |
Override for notification when fetchArticle() action is completed | |
Override for notification when getNewNews() action is successful | |
Inherited from NNTPClient | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Get the complete article with the specified index (or the currently selected article if index is '') or Message-ID from the server. | |
Get the body for the specified article (or the currently selected article if index is '') from the server. | |
Get group information for the specified group from the server. | |
Request a list of all news groups from the server. | |
Get the header for the specified article (or the currently selected article if index is '') from the server. | |
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. | |
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. | |
Request the overview format from the server. | |
Request a list of the groups it is recommended a new user subscribe to. | |
Request a specific header from the server for an article or range of articles. | |
Override for notification when fetchGroups() action fails | |
Override for notification when fetchArticle() action fails | |
Override for notification when fetchBody() action fails | |
Override for notification when fetchGroup() action fails | |
Override for notification when fetchHead() action fails | |
Override for notification when getNewGroups() action fails | |
Override for notification when fetchOverview() action fails | |
Override for notification when fetchSubscriptions() action fails | |
Override for notification when getXHeader() action fails | |
Override for notification when fetchGroups() action is completed | |
Override for notification when fetchBody() action is completed | |
Override for notification when fetchGroup() action is completed | |
Override for notification when fetchHead() action is completed | |
Override for notification when getNewGroups() action is successful | |
Override for notification when fetchOverview() action is completed | |
Override for notification when fetchSubscriptions() action is completed | |
Override for notification when getXHeader() action is successful | |
Override this for when each line is received. | |
Attempt to post an article with the specified text to the server. | |
Override for notification when postArticle() action is successful | |
Override for notification when postArticle() action fails | |
| |
Set the mode to STREAM, suspending the normal "lock-step" mode of communications. | |
Override for notification when setStream() action fails | |
Override for notification when setStream() action is successful | |
Inherited from LineReceiver | |
Clear buffered data. | |
Protocol.dataReceived. | |
Called when the maximum line length has been reached. | |
Override this for when raw data is received. | |
Sends a line to the other end of the connection. | |
Sets the line-mode of this receiver. | |
Sets the raw mode of this receiver. | |
Inherited from Protocol | |
(Deprecated) | |
Called when the connection is shut down. | |
Inherited from BaseProtocol | |
Make a connection to a transport and a server. |
Class Variable Summary | |
---|---|
Inherited from NNTPClient | |
int |
MAX_COMMAND_LENGTH = 510 |
Inherited from LineReceiver | |
str |
_LineReceiver__buffer = ''
|
str |
delimiter : The line-ending delimiter to use. |
int |
line_mode = 1 |
int |
MAX_LENGTH : The maximum length of a line to allow (If a sent line is longer than
this, the connection is dropped). |
Inherited from Protocol | |
tuple |
__implements__ = (<class twisted.internet.interfaces.IPr...
|
Inherited from BaseProtocol | |
int |
connected = 0 |
NoneType |
transport = None |
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 2.0 on Sat May 15 20:08:29 2004 | http://epydoc.sf.net |