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); } }
public override void Handle(SwitchOverResponse switchOverResponse) { Out.writeInt(2); Out.writeInt(switchOverResponse.Status().codeValue()); }