/** * This method is used to dispatch the socket for processing. The * socket will be configured and connected to the client, this * will hand processing to the <code>Server</code> which will * create the pipeline instance used to wrap the socket object. * * @param channel this is the connected socket to be processed * @param trace this is the trace to associate with the socket */ private void process(SocketChannel channel, Trace trace) throws IOException { SSLEngine engine = context.createSSLEngine(); try { process(channel, trace, engine); } catch(Exception cause) { trace.trace(ERROR, cause); channel.close(); } }
/** * This method is used to dispatch the socket for processing. The * socket will be configured and connected to the client, this * will hand processing to the <code>Server</code> which will * create the pipeline instance used to wrap the socket object. * * @param channel this is the connected socket to be processed * @param trace this is the trace to associate with the socket */ private void process(SocketChannel channel, Trace trace) throws IOException { SSLEngine engine = context.createSSLEngine(); try { process(channel, trace, engine); } catch(Exception cause) { trace.trace(ERROR, cause); channel.close(); } }
/** * This method is used to dispatch the socket for processing. The * socket will be configured and connected to the client, this * will hand processing to the <code>Server</code> which will * create the pipeline instance used to wrap the socket object. * * @param channel this is the connected socket to be processed * @param trace this is the trace to associate with the socket */ private void process(SocketChannel channel, Trace trace) throws IOException { SSLEngine engine = context.createSSLEngine(); try { process(channel, trace, engine); } catch(Exception cause) { trace.trace(ERROR, cause); channel.close(); } }
/** * The main processing done by this object is done using a thread * calling the <code>run</code> method. Here the TCP connections * are accepted from the <code>ServerSocketChannel</code> which * creates the socket objects. Each socket is then encapsulated in * to a pipeline and dispatched to the processor for processing. * * @throws IOException if there is a problem accepting the socket */ private void accept() throws IOException { SocketChannel channel = listener.accept(); while(channel != null) { Trace trace = analyzer.attach(channel); configure(channel); if(context == null) { process(channel, trace, null); } else { process(channel, trace); } channel = listener.accept(); } }
/** * The main processing done by this object is done using a thread * calling the <code>run</code> method. Here the TCP connections * are accepted from the <code>ServerSocketChannel</code> which * creates the socket objects. Each socket is then encapsulated in * to a pipeline and dispatched to the processor for processing. * * @throws IOException if there is a problem accepting the socket */ private void accept() throws IOException { SocketChannel channel = listener.accept(); while(channel != null) { Trace trace = agent.attach(channel); configure(channel); if(context == null) { process(channel, trace, null); } else { process(channel, trace); } channel = listener.accept(); } }
/** * The main processing done by this object is done using a thread * calling the <code>run</code> method. Here the TCP connections * are accepted from the <code>ServerSocketChannel</code> which * creates the socket objects. Each socket is then encapsulated in * to a pipeline and dispatched to the processor for processing. * * @throws IOException if there is a problem accepting the socket */ private void accept() throws IOException { SocketChannel channel = listener.accept(); while(channel != null) { Trace trace = analyzer.attach(channel); configure(channel); if(context == null) { process(channel, trace, null); } else { process(channel, trace); } channel = listener.accept(); } }