Class TcpConnection

    • Method Detail

      • secureConnection

        public abstract void secureConnection()
                                       throws Exception
        Secures the connection with TLS.
        Throws:
        Exception - Any exception which may occur during TLS handshake.
      • compressConnection

        public abstract void compressConnection​(String method,
                                                Runnable onSuccess)
                                         throws Exception
        Compresses the connection.
        Parameters:
        method - The compression method.
        onSuccess - Invoked after the compression method has been chosen, but before compression is applied.
        Throws:
        Exception - Any exception which may occur during compression.