File | Doc | Category | Size | Date | Package |
---|
B1.java | API Doc | Sun JDK 1.5.0 Example | 2542 | Sat Jan 08 15:08:43 GMT 2005 | None |
B1public class B1 extends Server A blocking/single-threaded server which completely services
each connection before moving to the next. |
Constructors Summary |
---|
B1(int port, int backlog, boolean secure)
super(port, backlog, secure);
|
Methods Summary |
---|
void | runServer()
for (;;) {
SocketChannel sc = ssc.accept();
ChannelIO cio = (sslContext != null ?
ChannelIOSecure.getInstance(
sc, true /* blocking */, sslContext) :
ChannelIO.getInstance(
sc, true /* blocking */));
RequestServicer svc = new RequestServicer(cio);
svc.run();
}
|
|