internal override void confirmReceived(Session session) { //if we end up here, everything went fine -> end protocol and start encryption! session.tearDown(); Logger.log(TLogLevel.logDebug, "Info: Bottom protocol run completed successfully."); session.startSecureChannel(); }
/// <summary> /// Called when a CLOSING message is received. /// </summary> /// <param name="session">The corresponding session.</param> internal virtual void closingReceived(Session session) { session.tearDown(); }
/// <summary> /// Default handler for non protocol-conform events. /// Ends the respective protocol run. /// </summary> /// <param name="session">Corresponding Surface protocol run.</param> internal virtual void invalidMessage(Session session) { session.tearDown(); }
/// <summary> /// Ends a protocol run. /// </summary> /// <param name="session">The corresponding session.</param> internal static void endProtocol(Session session) { session.sendAbort(); session.tearDown(); }