示例#1
0
        internal void OnTransportEvent(TransportProtocol transport, TransportProtocolState state)
        {
            switch (state)
            {
            case TransportProtocolState.DISCONNECTED:
            {
                FireEvent(SSHState.DISCONNECTED);
                break;
            }

            case TransportProtocolState.PERFORMING_KEYEXCHANGE:
            {
                /*FireEvent(SSHState.PERFORMING_KEYEXCHANGE);*/
                break;
            }
            }
        }
示例#2
0
 /// <summary>
 /// Initialize the key exchange.
 /// </summary>
 /// <param name="transport"></param>
 public void Init(TransportProtocol transport)
 {
     this.transport = transport;
 }