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(); }
public void Handle(NetworkConnection connection, HandshakeNegotiatorPassiveContext context) { new HandshakeNegotiatorPassive(dependencies.Network, connection, context, hooks).Execute(); }