IrcEventLoop

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

Constructors

this
this()

Create a new event loop.

Destructor

~this
~this()
Undocumented in source.

Members

Enums

TimerRepeat
enum TimerRepeat
Undocumented in source.

Functions

add
void add(IrcClient client)

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

add
DccEventIndex add(DccConnection conn)
Undocumented in source. Be warned that the author may not have intended to support it.
post
void post(void delegate() callback)

Run the specified callback at the next idle event.

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

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

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(DccEventIndex dccEvent)
Undocumented in source. Be warned that the author may not have intended to support it.
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.

Structs

Timer
struct Timer
Undocumented in source.

Variables

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

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

Meta