private byte[] receiveMessage(InputStream in, int bytes) throws IOException {
		byte[] input = new byte[16384];
		int numBytes = in.read(input) & 0xFFFF;
		System.out.println("received " + numBytes + " bytes!");
		if (numBytes > 0) {
			return input;
		}
		return null;
	}