Class prominence.msgx.GenericSourceIDServer
All Packages Class Hierarchy This Package Previous Next Index
Class prominence.msgx.GenericSourceIDServer
java.lang.Object
|
+----java.lang.Thread
|
+----prominence.msg.GenericServer
|
+----prominence.msgx.GenericSourceIDServer
- public class GenericSourceIDServer
- extends GenericServer
A variant of the GenericServer class that makes
use of the GenericSourceIDHandler client handler.
- See Also:
- GenericSourceIDHandler
-
GenericSourceIDServer(int)
- Creates a new GenericSourceIDServer that listens on
the specified port.
-
main(String[])
- Starts a new GenericSouceIDServer listening on the specified port.
-
run()
- Accepts new client connections and passes them on to
new GenericSourceIDHandlers for processing.
GenericSourceIDServer
public GenericSourceIDServer(int port) throws IOException
- Creates a new GenericSourceIDServer that listens on
the specified port.
- Parameters:
- port - The port to listen on
- Throws: IOException
- Occurs if the ServerSocket could
not be opened.
run
public void run()
- Accepts new client connections and passes them on to
new GenericSourceIDHandlers for processing.
This method is called by a new thread when the superclass
start() method is called.
- Overrides:
- run in class GenericServer
- See Also:
- start
main
public static void main(String args[]) throws IOException
- Starts a new GenericSouceIDServer listening on the specified port.
Syntax:
java prominence.msg.GenericSourceIDServer <port>
- Throws: IOException
- Occurs when the ServerSocket cannot
be opened.
All Packages Class Hierarchy This Package Previous Next Index