This commit is contained in:
Andrin Fassbind
2022-04-16 19:40:51 +02:00
parent 8cb83ef7ef
commit dad15d52d2
3 changed files with 20 additions and 35 deletions
@@ -75,20 +75,6 @@ public class ServerConnectionHandler extends ConnectionHandler implements Runnab
this.connectionRegistry = registry;
}
/** //TODO needed method?
* @return the username of the connected client
*/
public String getUserName() {
return this.userName;
}
/** //TODO needed method?
* @return state of the connection. Possible states are see {@link ch.zhaw.pm2.multichat.protocol.ConnectionHandler.State}
*/
public State getState() {
return state;
}
/**
* These methods runs in a while-loop as long as the socket between server and client is available
* and the connection State is not ERROR.