/** * Constructor for the <code>SocketListener</code> object. This * needs a socket address and a processor to hand created sockets * to. This creates a <code>Reactor</code> which will notify the * acceptor when there is a new connection waiting to be accepted. * * @param address this is the address to listen for new sockets * @param processor this is the processor that sockets are handed to * @param analyzer this is used to create a trace to monitor events * @param context this is the SSL context used for secure HTTPS */ public SocketListener(SocketAddress address, SocketProcessor processor, TraceAnalyzer analyzer, SSLContext context) throws IOException { this.acceptor = new SocketAcceptor(address, processor, analyzer, context); this.reactor = new SynchronousReactor(); }
/** * Constructor for the <code>SocketListener</code> object. This * needs a socket address and a processor to hand created sockets * to. This creates a <code>Reactor</code> which will notify the * acceptor when there is a new connection waiting to be accepted. * * @param address this is the address to listen for new sockets * @param processor this is the processor that sockets are handed to * @param analyzer this is used to create a trace to monitor events * @param context this is the SSL context used for secure HTTPS */ public SocketListener(SocketAddress address, SocketProcessor processor, TraceAnalyzer analyzer, SSLContext context) throws IOException { this.acceptor = new SocketAcceptor(address, processor, analyzer, context); this.reactor = new SynchronousReactor(); }
/** * Constructor for the <code>Listener</code> object. This needs * a socket address and a processor to hand created sockets * to. This creates a <code>Reactor</code> which will notify the * acceptor when there is a new connection waiting to be accepted. * * @param address this is the address to listen for new sockets * @param context this is the SSL context used for secure HTTPS * @param server this is the server that pipelines are handed to * @param agent this is used to create a trace to monitor events */ public SocketListener(SocketAddress address, SSLContext context, Server server, Agent agent) throws IOException { this.acceptor = new SocketAcceptor(address, context, server, agent); this.reactor = new DirectReactor(); this.process(); }