Commit e6ad1616 authored by Winfried's avatar Winfried

javadoc

parent 1e7cff86
......@@ -7,7 +7,6 @@ import java.net.InetAddress;
/**
* dataType which represents all configurable parameters for the client/ui
*
* @author matthias
*/
public class ClientConfig extends ConfigParameters {
......
......@@ -78,7 +78,7 @@ public class CwClient implements IClient, ITcpListener {
} else if (type == CwMessageType.GameStatus) {
callback.receiveGameStatusTelegram(interpreter.parseGameStatusMessage(data));
} else if (type == CwMessageType.GameResult) {
callback.receiveGameResultTelegram(interpreter.parseGameResultMessage(data));
callback.receiveGameResultTelegram(interpreter.parseGameResultMessage(data));
} else {
// TODO: print that to log file
System.out.print("unknown or invalid message type");
......
......@@ -20,6 +20,11 @@ public class TcpClientModule implements ITcpClientModule, ITcpListener {
private Socket clientSocket;
private List<ITcpListener> listeners = new LinkedList<>();
/**
* connects to a remote server
* @param address
* @param port
*/
@Override
public void connect(String address, int port) {
try {
......
......@@ -27,6 +27,9 @@ public class TcpReceiveMessage implements Runnable {
listeners.add(listener);
}
/**
* Asynchronously receives incoming messages
*/
@Override
public void run() {
try {
......
......@@ -28,6 +28,9 @@ public class TcpServerAccept implements Runnable {
this.accepted = accepted;
}
/**
* Asynchronously wait for incoming clients
*/
@Override
public void run() {
try {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment