@Override
	protected void processConnection() {
		
		while(true) {
			
			try {
				int receiverID = (Integer) input.readObject();
				String message = (String) input.readObject();
				
				ClientHandler recieverHandler = Server.clientConnections.get(receiverID);
				if(recieverHandler == null) {
					sendData(ERROR_CODE);
					sendData("Not available");
				}
				else {
					recieverHandler.sendData(clientID);
					recieverHandler.sendData(message);
				}
			}
			catch(ClassNotFoundException classNotFoundException) {
				server.serverGUI.showMessage("Unknown object type recieved.");
			}
			catch(IOException ioException) {
				server.serverGUI.showMessage("Client terminated connection.\n");
				closeConnection();
				break;
			}
		}
	}