Class SimpleNetwork.NetworkOutputStream

    • Method Detail

      • writeHeader

        protected void writeHeader()
        Writes the protocol header to this output stream.
        Specified by:
        writeHeader in class MessageOutputStream
      • writeMessage

        void writeMessage​(OutputStream os,
                          Message msg,
                          long currentTimeMillis)
                   throws IOException
        Writes a message to the output stream of the socket. Be careful, the buffer must be large enough to contain the header.
        Parameters:
        os - The output stream.
        msg - The message to write out.
        currentTimeMillis - The current time in milliseconds, this parameter is used to the handling of notification expiration.
        Throws:
        IOException - an error occurs.