IrcEventLoop

A collection of $(DPREF client, IrcClient) objects for efficiently handling incoming data.

Constructors

this
this()

Create a new event loop.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

add
void add(IrcClient client)

Add a connected _client to the set, or do nothing if the _client is already in the set.

post
Timer post(void delegate() callback, double time)

Run the specified callback as soon as possible after time has elapsed.

post
void post(void delegate() callback)

Run the specified callback at the next idle event.

postTimer
Timer postTimer(void delegate() callback, double interval, TimerRepeat repeat)

Run callback at every interval, or just once after interval time has elapsed if repeat is TimerRepeat.no.

remove
void remove(IrcClient client)

Remove a _client from the set, or do nothing if the _client is not in the set.

run
void run()

Handle incoming data for the clients in the set.

Variables

onError
void delegate(IrcClient, Exception)[] onError;

Invoked when an error occurs for a client in the set.

Meta