FileDocCategorySizeDatePackage
B1.javaAPI DocSun JDK 1.5.0 Example2542Sat Jan 08 15:08:43 GMT 2005None

B1

public class B1 extends Server
A blocking/single-threaded server which completely services each connection before moving to the next.
author
Mark Reinhold
author
Brad R. Wetmore
version
1.2, 04/07/26

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

	super(port, backlog, secure);
    
Methods Summary
voidrunServer()

	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();
	}