/// <summary> /// 处理流删除消息 /// </summary> /// <param name="removed"></param> /// <param name="handler"></param> /// <returns></returns> public virtual bool FlowRemoved(OfpFlowRemoved removed, IConnection handler) { foreach (var plugin in Plugins.Values.Where(plugin => plugin.Active)) { try { bool result = plugin.MessageHandler.FlowRemoved(removed, handler); if (result) { break; } } catch (Exception e) { Debug.WriteLine(e); } } return(true); }
private void FlowRemoved(MemoryStream ms, OfpHeader header) { OfpFlowRemoved removed = new OfpFlowRemoved(ms, header); _controller.PluginSystem.FlowRemoved(removed, this); }
/// <summary> /// 处理流删除消息 /// </summary> /// <param name="removed"></param> /// <param name="handler"></param> /// <returns></returns> public virtual bool FlowRemoved(OfpFlowRemoved removed, IConnection handler) { return(false); }