public class ClientConnection extends Connection
Connection.event| Constructor | Description |
|---|---|
ClientConnection(TcpClient server,
java.net.Socket socket) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
replyCommand(java.lang.String command,
java.lang.String arguments) |
Sends a command to the client connected through this connection
|
void |
replyText(java.lang.String data) |
Sends a simple message to the client connected through this connection
|
getConnectionCreated, getSocketpublic void replyText(java.lang.String data)
throws ClientException
data - text to be sentClientExceptionpublic void replyCommand(java.lang.String command,
java.lang.String arguments)
throws ClientException
command - command to be sentarguments - the command argumentsClientException