/** * Constructor for the <code>SocketListenerManager</code> object. * This is used to create a manager that will enable listeners to * be created to listen to specified sockets for incoming TCP * connections, which will be converted to socket objects. * * @param processor this is the processor to hand sockets to * @param analyzer this is the agent used to trace socket events */ public SocketListenerManager(SocketProcessor processor, TraceAnalyzer analyzer) { this.listeners = new CopyOnWriteArraySet<SocketListener>(); this.analyzer = new SocketAnalyzer(analyzer); this.processor = processor; }
/** * Constructor for the <code>SocketListenerManager</code> object. * This is used to create a manager that will enable listeners to * be created to listen to specified sockets for incoming TCP * connections, which will be converted to socket objects. * * @param processor this is the processor to hand sockets to * @param analyzer this is the agent used to trace socket events */ public SocketListenerManager(SocketProcessor processor, TraceAnalyzer analyzer) { this.listeners = new CopyOnWriteArraySet<SocketListener>(); this.analyzer = new SocketAnalyzer(analyzer); this.processor = processor; }