/** * Prevents sending the delta to the server. But the connection * still seems connected. */ public void preventSending(int clientNumber) { ClientMock client = clientMocks.get(clientNumber); ServerConnectionMock connection = client.getConnection(); serverMock.removeClientConnection(connection); connection.setServerMock(null); }
/** * Prevents sending the delta to the server. But the connection * still seems connected. */ public void preventSending(int clientNumber) { ClientMock client = clientMocks.get(clientNumber); ServerConnectionMock connection = client.getConnection(); serverMock.removeClientConnection(connection); connection.setServerMock(null); }
/** * Disconnect a single client from server. */ public void killClient(int clientNumber) { ClientMock client = clientMocks.get(clientNumber); ServerConnectionMock connection = client.getConnection(); serverMock.removeClientConnection(connection); connection.setOpen(false); connection.getReceivedDeltas().clear(); connection.getSentDeltas().clear(); connection.setServerMock(null); }
/** * Disconnect a single client from server. */ public void killClient(int clientNumber) { ClientMock client = clientMocks.get(clientNumber); ServerConnectionMock connection = client.getConnection(); serverMock.removeClientConnection(connection); connection.setOpen(false); connection.getReceivedDeltas().clear(); connection.getSentDeltas().clear(); connection.setServerMock(null); }