code: protected void sendBuf(final OtpErlangPid from, final String dest,
              final OtpOutputStream payload) throws IOException {
          if (!connected) {
              throw new IOException("Not connected");
          }
          @SuppressWarnings("resource")
          final OtpOutputStream header = new OtpOutputStream(headerLen);
  
          // preamble: 4 byte length + "passthrough" tag + version
          header.write4BE(0); // reserve space for length
          header.write1(passThrough);
          header.write1(version);
  
          // header info
          header.write_tuple_head(4);
          header.write_long(regSendTag);
          header.write_any(from);
          if (sendCookie) {
              header.write_atom(localNode.cookie());
          } else {
              header.write_atom("");
          }
          header.write_atom(dest);
  
          // version for payload
          header.write1(version);
  
          // fix up length in preamble
          header.poke4BE(0, header.size() + payload.size() - 4);
  
          do_send(header, payload);
      }
docs: Send a pre-encoded message to a named process on a remote node.
  
  @param dest
  the name of the remote process.
  @param payload
  the encoded message to send.
  
  @exception java.io.IOException
  if the connection is not active or a communication error
  occurs.