File | Doc | Category | Size | Date | Package |
---|
N2.java | API Doc | Sun JDK 1.5.0 Example | 2357 | Sat Jan 08 15:08:43 GMT 2005 | None |
N2public class N2 extends Server A non-blocking/dual-threaded which performs accept()s in one thread,
and services requests in a second. Both threads use select(). |
Constructors Summary |
---|
N2(int port, int backlog, boolean secure)
super(port, backlog, secure);
|
Methods Summary |
---|
void | runServer()
Dispatcher d = new DispatcherN();
Acceptor a = new Acceptor(ssc, d, sslContext);
new Thread(a).start();
d.run();
|
|