Message serverResponse = servProtocol.sendRequest(Message.LOGIN, email + "_" + password);
if (serverResponse != null) {
switch (serverResponse.getHeader()) {
case Message.LOGIN_SUCCESS:
return new Player(email, password, new String(serverResponse.getBody()));
default:
exceptionTriggered(serverResponse.getHeader());
}
} else {
throw new GameException(GameException.typeErr.CONN_KO);