public BasicIOHandler(final InputStream IS, OutputStream OS, IConnectionManager imh, boolean client) {
		IMH = imh;
		log.fine("Creating Streams");
		dis = new DataInputStream(IS);
		dos = new DataOutputStream(OS);
		if(imh.getSide() == Side.CLIENT) {
			startHandshake(client);
		} else {
			sendPacket(imh.getPacketRegistrie().getSyncPacket());
		}
	}