private static readonly TimeSpan UDPSessionAliveTimeout = new TimeSpan(0, 0, 0, 600); //s public UDPTracker(IFlowStoreFactory flowStoreFactory, L4Conversation l4Conversation) { this.L4Conversation = l4Conversation; this.FlowStore = flowStoreFactory.Create(l4Conversation, UDPSessionAliveTimeout); this.UpFlowUDPFlowTracker = new UDPFlowTracker(this.L4Conversation, this.FlowStore, UDPSessionAliveTimeout, DaRFlowDirection.up); this.DownFlowUDPFlowTracker = new UDPFlowTracker(this.L4Conversation, this.FlowStore, UDPSessionAliveTimeout, DaRFlowDirection.down); }
private readonly Int32 _tcpSessionMaxDataLooseOnTCPLoop = 3800; //B public TCPTracker(IFlowStoreFactory flowStoreFactory, L4Conversation l4Conversation) { this.L4Conversation = l4Conversation; this.FlowStore = flowStoreFactory.Create(l4Conversation, TCPSessionAliveTimeout); this.UpFlowTCPFlowTracker = new TCPFlowTracker(this.L4Conversation, this.FlowStore, TCPSessionAliveTimeout, this._tcpSessionMaxDataLooseOnTCPLoop, DaRFlowDirection.up); this.DownFlowTCPFlowTracker = new TCPFlowTracker(this.L4Conversation, this.FlowStore, TCPSessionAliveTimeout, this._tcpSessionMaxDataLooseOnTCPLoop, DaRFlowDirection.down); }