code: void send(byte streamCode, byte[] b, int offset, int len) throws IOException {
      synchronized (writeLock) {
        out.writeInt(len);
        out.writeByte(streamCode);
        out.write(b, offset, len);
      }
      out.flush();
    }
docs: Send data to the client