protected override void CheckRequest() { _initPacket = new InitPacket(); _initPacket.Parse(_recv); string key = _session.RemoteEndPoint.ToString() + "-" + _initPacket.PortType.ToString(); if (!NatNegotiatorPool.Sessions.TryGetValue(key, out _)) { NatNegotiatorPool.Sessions.TryAdd(key, _session); } }
protected override void CheckRequest() { _initPacket = new InitPacket(); _initPacket.Parse(_recv); }