Exemple #1
0
            //public new void framemove() { if (!mbCreate) { return; } base.framemove();  }
            //public override void onNccpcNwLeave(...)
            public override void onNccpcNwRecv(NccpcNw1Pk2 pkr)
            {
                //qv("Dbg CtRv l:" + pkr.getDataLen());

                if (false)
                {
                    using (var pkw = pkr.copyDeep())
                    {
                        send(pkw);
                    }
                }
                else
                {
                    mNo.naiwIptbase(new NiSend(0, pkr.copyDeep()));
                }

                //base.onNccpcNwRecv(cti, ncpk);
            }
 //public new void framemove() { if (!mbCreate) { return; } base.framemove();  }
 //public override void onNccpcNwLeave(...)
 public override void onNccpcNwRecv(NccpcNw1Pk2 pkr)
 {
     //qv("Dbg CtRv l:" + pkr.getDataLen());
     using (var pkw = pkr.copyDeep())
     {
         send(pkw);
     }
     //base.onNccpcNwRecv(cti, ncpk);
 }
Exemple #3
0
            public override void onNccpcNwRecv(int cti, NccpcNw1Pk2 pkr)
            {
                var pklen = (long)pkr.getDataLen();

                System.Threading.Interlocked.Add(ref mLogTransSize, pklen);

                if (false)
                {
                    using (var pkw = pkr.copyDeep())
                    {
                        send(cti, pkw);
                    }
                }
                else
                {
                    mNo.naiwIptbase(new NiSend(cti, pkr.copyDeep()));
                }

                //base.onNccpcNwRecv(cti, ncpk);
            }