DccChat

Represents a DCC chat session.

Members

Functions

finish
void finish()

End the chat session.

name
string name()

Always the string "chat".

send
void send(in char[] message)

Send a single chat _message.

sendMultiple
void sendMultiple(in char[] messages)

Send chat _messages. Each message must be terminated with the character \n.

sendf
void sendf(in char[] fmt, FmtArgs fmtArgs)

Send a single, formatted chat message.

Variables

onConnect
void delegate()[] onConnect;

Invoked when the session has started.

onFinish
void delegate()[] onFinish;

Invoked when the session has cleanly ended.

onMessage
void delegate(in char[] line)[] onMessage;

Invoked when a line of text has been received.

Inherited Members

From DccConnection

State
enum State
state
State state;

Current state of the connection.

write
void write(in void[] data)

Write to this connection.

onConnected
void onConnected()

Invoked when the connection has been established.

onDisconnected
void onDisconnected()

Invoked when the connection was closed cleanly.

onRead
bool onRead(in void[] data)

Invoked when _data was received.

timeout
uint timeout;

The timeout value of this connection in seconds.

name
string name()

Name of this resource.

onError
void delegate(Exception e)[] onError;

Invoked when an error occurs.

onTimeout
void delegate()[] onTimeout;

Invoked when a listening connection has timed out.

Meta