com.darwinsys.net
Class StreamServer

java.lang.Object
  extended by com.darwinsys.net.StreamServer
All Implemented Interfaces:
GenericServer

public class StreamServer
extends java.lang.Object
implements GenericServer

StreamServer packages up all the network handling goo for a stream socket-based server; clients need only provide a StreamServerHandlerFactory and a port number.


Constructor Summary
StreamServer(int portNumber, StreamServerHandlerFactory streamHandlerFactory)
           
 
Method Summary
 int getPort()
           
 void handleError(java.lang.Exception e)
           
 void runServer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamServer

public StreamServer(int portNumber,
                    StreamServerHandlerFactory streamHandlerFactory)
             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

runServer

public void runServer()
Specified by:
runServer in interface GenericServer

handleError

public void handleError(java.lang.Exception e)
Specified by:
handleError in interface GenericServer

getPort

public int getPort()


Copyright © 1996-2004 Ian F. Darwin. See license.html for usage license.