/** * This is used to close the connection and the server socket * used to accept connections. This will perform a close of all * connected server sockets that have been created from using * the <code>connect</code> method. The connection can be * reused after the existing server sockets have been closed. * * @throws IOException thrown if there is a problem closing */ public void close() throws IOException { if(!closed) { manager.close(); processor.stop(); } closed = true; } }
/** * This is used to close the connection and the server socket * used to accept connections. This will perform a close of all * connected server sockets that have been created from using * the <code>connect</code> method. The connection can be * reused after the existing server sockets have been closed. * * @throws IOException thrown if there is a problem closing */ public void close() throws IOException { if(!closed) { manager.close(); server.stop(); } closed = true; } }
/** * This is used to close the connection and the server socket * used to accept connections. This will perform a close of all * connected server sockets that have been created from using * the <code>connect</code> method. The connection can be * reused after the existing server sockets have been closed. * * @throws IOException thrown if there is a problem closing */ public void close() throws IOException { if(!closed) { manager.close(); processor.stop(); } closed = true; } }