public HandshakeNegotiatorPassive(NetworkPool pool, NetworkConnection connection, HandshakeNegotiatorPassiveContext context, HandshakeNegotiatorHooks hooks)
        {
            this.context = context;
            this.hooks   = hooks;

            this.connection  = new HandshakeConnection(pool, connection, hooks);
            this.credentials = HandshakeCryptography.Generate();
            this.keys        = new HandshakeKeyContainer();
        }
示例#2
0
 public void Handle(NetworkConnection connection, HandshakeNegotiatorPassiveContext context)
 {
     new HandshakeNegotiatorPassive(dependencies.Network, connection, context, hooks).Execute();
 }