switch (p.getP()) {
case CLIENT_Login:
new UserLoginAction(ip, (LoginPacket) p.getO());
break;
case CLIENT_Logout:
new UserLogoutAction(ip.getHostAddress(), (String) p.getO());
break;
case CLIENT_Register:
new UserRegisterAction(ip, (RegisterPacket) p.getO());
break;
case CLIENT_AddContact: