public byte[] recv()
	{
		try {
			byte[] bytes = new byte[BUFF_LENGTH];
			int len = socket.getInputStream().read(bytes);
			if (len > BUFF_LENGTH) {
				throw new RuntimeException("Data too long!");
			}
			return Arrays.copyOf(bytes, len);
		} catch (IOException e) {
			e.printStackTrace();
			return new byte[0];
		}
	}