Thrown when a DCC error occurs.
Hub for new DCC connections.
Create a new DCC server given the event loop and IRC client to be associated with this server.
The event loop is used to schedule reads and
writes for open DCC connections.
The associated IRC client is used to send
DCC/CTCP notifications as well as to look up
the Internet address to advertise for this
server.
The IP address of the DCC server in network byte order.
If not explicitly provided, this defaults to the result of looking up the hostname for the associated IRC client.
Set the port range for accepting connections.
The server selects a port in this range when initiating connections. The default range is 49152–65535. The range is inclusive on both ends.
Invite the given user to a DCC chat session.
The associated IRC client must be connected.
char[] nick | nick of user to invite |
uint timeout | time in seconds to wait for the invitation to be accepted |
Represents a DCC connection.
Current state of the connection.
This session is waiting for a connection.
This session timed out when waiting for a connection.
This is an active connection.
This DCC session has ended.
Initialize a DCC resource with the given socket, timeout value and state.
Write to this connection.
Invoked when the connection has been established.
Invoked when the connection was closed cleanly.
Invoked when data was received.
The timeout value of this connection in seconds.
Name of this resource.
Invoked when an error occurs.
Invoked when a listening connection has timed out.
Represents a DCC chat session.
Always the string "chat".
Invoked when the session has started.
Invoked when the session has cleanly ended.
Invoked when a line of text has been received.
Send a single chat message.
char[] message | message to send. Must not contain newlines. |
Send a single, formatted chat message.
char[] fmt | format of message to send. Must not contain newlines. |
FmtArgs fmtArgs | fmt is formatted with these arguments. |
Send chat messages. Each message must be terminated with the character \n.
End the chat session.