Пример #1
0
 public override void Handle(SwitchOverResponse response)
 {
     EnsureMagic();
     if (_protocolStack == null)
     {
         Decline("Attempted to switch over when protocol stack not established");
     }
     else if (response.Status() != StatusCode.Success)
     {
         Decline("Server failed to switch over");
     }
     else
     {
         _future.complete(_protocolStack);
     }
 }
Пример #2
0
 public override void Handle(SwitchOverResponse switchOverResponse)
 {
     Out.writeInt(2);
     Out.writeInt(switchOverResponse.Status().codeValue());
 }