Ejemplo n.º 1
0
 protected IFrame Pop(NetContext context)
 {
     lock (this)
     {
         return(ProtocolProcessor.GetFrame(context, ref holder));
     }
 }
Ejemplo n.º 2
0
        IFrame IProtocolProcessor.GetOutboundFrame(NetContext context)
        {
            lock (this)
            {
                var result = ProtocolProcessor.GetFrame(context, ref controlQueue);
                if (result != null)
                {
#if VERBOSE
                    Debug.WriteLine("popped (control): " + result);
#endif
                }
                else
                {
                    result = ProtocolProcessor.GetFrame(context, ref dataQueue);
                    if (result != null)
                    {
#if VERBOSE
                        Debug.WriteLine("popped (data): " + result);
#endif
                    }
                }
                return(result);
            }
        }