예제 #1
0
 //since NACK is al valid message for this state, it is implemented explicitly
 internal override void nackReceived(Session session, bool authentic = false)
 {
     session._tearDown();
 }
예제 #2
0
 internal override void securityStatusChanged(Session session)
 {
     //check if session has gone secure
     if (session.isSecure != true)
     {
         //this should never happen
         session._tearDown();
     }
     session.changeState(Routing.Instance(session));
 }
예제 #3
0
 /// <summary>
 /// Called whenever the security status of a session has changed.
 /// </summary>
 /// <param name="session">The corresponding session.</param>
 internal virtual void securityStatusChanged(Session session)
 {
     session._tearDown();
 }
예제 #4
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();
 }
예제 #5
0
 /// <summary>
 /// Ends a protocol run.
 /// </summary>
 /// <param name="session">The corresponding session.</param>
 internal void endProtocol(Session session)
 {
     session.sendCLOSING();
     session._tearDown();
 }
예제 #6
0
 /// <summary>
 /// Called when a CLOSING message is received.
 /// </summary>
 /// <param name="session">The corresponding session.</param>
 /// <param name="authentic">Flag indicating whether the received message was properly signed.</param>
 internal virtual void closingReceived(Session session, bool authentic = false)
 {
     session._tearDown();
 }