public JInPiqi.request read_message() throws IOException {
		InputStream is = socket.getInputStream();

		byte[] lb = new byte[4];
		int length = 0;
		//Gets the incoming data and recreates the proto object

		is.read(lb, 0, 4);
		length = lb[0] << 24 | lb[1] << 16 | lb[2] << 8 | lb[3] << 0;

		byte[] in = new byte[length];
		is.read(in, 0, length);
		return JInPiqi.request.parseFrom(in);
	}