IrcConnection

Base class for an IRC client-server connection.

Constructors

this
this(IConnection c, size_t maxLineLength)
Undocumented in source.

Members

Functions

disconnect
void disconnect(string reason, DisconnectType type)
Undocumented in source. Be warned that the author may not have intended to support it.
send
void send(string line)

Send line, plus a newline.

Properties

handleConnect
IConnection.ConnectHandler handleConnect [@property setter]

Forwards to the underlying transport.

handleDisconnect
IConnection.DisconnectHandler handleDisconnect [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
state
ConnectionState state [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

conn
IConnection conn;

Underlying transport.

handleInactivity
void delegate() handleInactivity;

Inactivity handler (for sending a PING request).

handleReadLine
void delegate(string line) handleReadLine;

Data handler.

handleTimeout
void delegate() handleTimeout;

Timeout handler - called if handleInactivity was null or did not result in activity.

Meta