NntpClient

Implements an NNTP client connection.

Constructors

this
this(Logger log)
Undocumented in source.

Members

Functions

connect
void connect(string server, void delegate() handleConnect)

Connect to the given server.

disconnect
void disconnect(string reason)

Disconnect.

getDate
void getDate(void delegate(string date) handleDate, void delegate(string) handleError)

Send a DATE command.

getMessage
void getMessage(string numOrID, void delegate(string[] lines, string num, string id) handleMessage, void delegate(string) handleError)

Send an ARTICLE command.

getNewNews
void getNewNews(string wildmat, string dateTime, void delegate(string[] messages) handleNewNews, void delegate(string) handleError)

Send a NEWNEWS command.

listGroup
void listGroup(string name, int from, void delegate(string[] messages) handleListGroup, void delegate(string) handleError)
void listGroup(string name, void delegate(string[] messages) handleListGroup, void delegate(string) handleError)

Send a LISTGROUP command.

listGroupXover
void listGroupXover(string name, int from, void delegate(string[] messages) handleListGroup, void delegate(string) handleError)
void listGroupXover(string name, void delegate(string[] messages) handleListGroup, void delegate(string) handleError)

Send a XOVER command.

listGroups
void listGroups(void delegate(GroupInfo[] groups) handleGroups, void delegate(string) handleError)

Send a LIST command.

postMessage
void postMessage(string[] lines, void delegate() handlePosted, void delegate(string) handleError)

Send a POST command.

selectGroup
void selectGroup(string name, void delegate() handleSuccess, void delegate(string) handleError)

Send a GROUP command.

Variables

connected
bool connected;

True when a connection is fully established and a greeting is received.

handleDisconnect
void delegate(string reason, DisconnectType type) handleDisconnect;

Called when the connection is disconnected.

handleIdle
void delegate() handleIdle;

Called when the command queue is empty.

Meta