Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Called when a CLOSING message is received.
 /// </summary>
 /// <param name="session">The corresponding session.</param>
 internal virtual void closingReceived(Session session)
 {
     session.tearDown();
 }
Ejemplo n.º 3
0
 /// <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();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Ends a protocol run.
 /// </summary>
 /// <param name="session">The corresponding session.</param>
 internal static void endProtocol(Session session)
 {
     session.sendAbort();
     session.tearDown();
 }