DccConnection

Represents a DCC connection.

Constructors

this
this(Socket socket, uint timeout, State initialState)

Initialize a DCC resource with the given _socket, timeout value and state.

Members

Enums

Event
enum Event
Undocumented in source.
State
enum State

Current state of the connection.

Functions

doTimeout
void doTimeout()
Undocumented in source. Be warned that the author may not have intended to support it.
name
string name()

Name of this resource.

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.

read
Event read()
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(void[] data)

Write to this connection.

Variables

eventIndex
DccEventIndex eventIndex;
Undocumented in source.
onError
void delegate(Exception e)[] onError;

Invoked when an error occurs.

onTimeout
void delegate()[] onTimeout;

Invoked when a listening connection has timed out.

socket
Socket socket;
Undocumented in source.
state
State state;

Current state of the connection.

timeout
uint timeout;

The timeout value of this connection in seconds.

Meta