Exemplo n.º 1
0
 private void OnTcpConnecting(object sender, TcpConnectingEventArgs e)
 {
     try
     {
         _productCache.AddTail(e);
     }
     catch (System.Exception)
     {
     }
 }
Exemplo n.º 2
0
        void ISaiConnectionObserver.OnSaiUserDataArrival(uint remoteID, byte[] userData, long timeDelay, MessageDelayDefenseTech defenseTech)
        {
            try
            {
                var pkg = new IncomingPackage(remoteID, userData, timeDelay, defenseTech);

                _productCacheReceive.AddTail(pkg);

                this.CheckIncomgCacheThreshold();
            }
            catch (System.Exception)
            {
            }
        }
Exemplo n.º 3
0
        public void Send(OutgoingPackage package)
        {
            _productCacheSending.AddTail(package);

            this.CheckOutgoingCacheThreshold();
        }