FileDocCategorySizeDatePackage
N1.javaAPI DocSun JDK 1.5.0 Example2485Sat Jan 08 15:08:43 GMT 2005None

N1

public class N1 extends Server
A non-blocking/single-threaded server. All accept() and read()/write() operations are performed by a single thread, but only after being selected for those operations by a Selector.
author
Mark Reinhold
author
Brad R. Wetmore
version
1.2, 04/07/26

Fields Summary
Constructors Summary
N1(int port, int backlog, boolean secure)

	super(port, backlog, secure);
	ssc.configureBlocking(false);
    
Methods Summary
voidrunServer()

	Dispatcher d = new Dispatcher1();
	d.register(ssc, SelectionKey.OP_ACCEPT,
		   new AcceptHandler(ssc, d, sslContext));
	d.run();