FileDocCategorySizeDatePackage
BN.javaAPI DocSun JDK 1.5.0 Example2632Sat Jan 08 15:08:43 GMT 2005None

BN

public class BN extends Server
A Blocking/Multi-threaded Server which creates a new thread for each connection. This is not efficient for large numbers of connections.
author
Mark Reinhold
author
Brad R. Wetmore
version
1.2, 04/07/26

Fields Summary
Constructors Summary
BN(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);
	    Thread th = new Thread(svc);
	    th.start();
	}