コード例 #1
0
        private void HandleKeyExchangeMessage(NetworkIncomingMessage message)
        {
            HandshakeKeyExchange exchange = new HandshakeKeyExchange(message);

            keys.Secret = HandshakeCryptography.Secret(credentials, exchange.Key);
            message.Acknowledge(96);

            connection.Send(new HandshakeKeyExchangeMessage(credentials));
            connection.Receive(SynchronizeCryptoHashMessage, VerifyCryptoHashMessage);
        }
コード例 #2
0
 public void Execute()
 {
     connection.Send(new HandshakeKeyExchangeMessage(credentials));
     connection.Receive(HandleKeyExchangeMessage, 96);
 }