DccChat

Represents a DCC chat session.

Members

Functions

finish
void finish()

End the chat session.

handleLine
void handleLine(char[] line)
Undocumented in source. Be warned that the author may not have intended to support it.
name
string name()

Always the string "chat".

onConnected
void onConnected()
Undocumented in source. Be warned that the author may not have intended to support it.
onDisconnected
void onDisconnected()
Undocumented in source. Be warned that the author may not have intended to support it.
onRead
bool onRead(void[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
send
void send(char[] message)

Send a single chat _message.

sendMultiple
void sendMultiple(char[] messages)

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

sendf
void sendf(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.

socket
Socket socket;
Undocumented in source.
eventIndex
DccEventIndex eventIndex;
Undocumented in source.
Event
enum Event
Undocumented in source.
read
Event read()
Undocumented in source. Be warned that the author may not have intended to support it.
doTimeout
void doTimeout()
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(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(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