public void newPacket(DataPacket packet) {
		if(monitor != null || client != null) {
			
			if(packet.getData().length > 0)
				System.out.println(packet.getSource() + "-" + new String(packet.getData()));
			
			if (packet.isKeepAlive()) {
				this.monitor.messageReceived(packet);
			}
			else if (packet.isRouting()) {
				this.router.packetReceived(packet);
			}
			else {
				this.client.packetReceived(packet);
			}
		} else {
			return;
		}
	}