Esempio n. 1
0
 protected override void Response()
 {
     base.Response();
     NatNegotiatorPool
     .FindNatNegotiatorsAndSendConnectPacket(
         _initPacket.PortType,
         _initPacket.Version,
         _initPacket.Cookie);
 }
Esempio n. 2
0
        protected override void DataOperation()
        {
            _session.UserInfo.SetIsGotReportPacketFlag();

            if (_reportPacket.NatResult != NatNegotiationResult.Success)
            {
                NatNegotiatorPool.FindNatNegotiatorsAndSendConnectPacket(NatPortType.GP, _reportPacket.Version, _reportPacket.Cookie);
                NatNegotiatorPool.FindNatNegotiatorsAndSendConnectPacket(NatPortType.NN1, _reportPacket.Version, _reportPacket.Cookie);
                NatNegotiatorPool.FindNatNegotiatorsAndSendConnectPacket(NatPortType.NN2, _reportPacket.Version, _reportPacket.Cookie);
                NatNegotiatorPool.FindNatNegotiatorsAndSendConnectPacket(NatPortType.NN3, _reportPacket.Version, _reportPacket.Cookie);
            }
        }