protected IFrame Pop(NetContext context) { lock (this) { return(ProtocolProcessor.GetFrame(context, ref holder)); } }
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); } }