All Packages Class Hierarchy This Package Previous Next Index
Class opg5.bioserver
java.lang.Object
|
+----java.lang.Thread
|
+----opg5.bioserver
- public class bioserver
- extends Thread
-
bioserverSocket
-
-
bioserver(int)
- The constructor for bioserver
-
main(String[])
- The method is alway called in an application
-
processCommand(String)
- This method is where everything important is happening.
-
run()
- This is where the server (as a thread) spends its time.
bioserverSocket
public ServerSocket bioserverSocket
bioserver
public bioserver(int port)
- The constructor for bioserver
- Parameters:
- port - The port number assigned to this server
main
public static void main(String args[])
- The method is alway called in an application
- Parameters:
- args - An array of the argument given on the command line
run
public void run()
- This is where the server (as a thread) spends its time. Here
socket connections from clients are accepted, and dealt with, the
proper responses returned.
- Overrides:
- run in class Thread
processCommand
public String processCommand(String command)
- This method is where everything important is happening. Given
arguments (encoded as a String), it returns the server's response
(which is then sent in run()).
- Parameters:
- command - The String received from the client
- Returns:
- The String to be sent to the client
All Packages Class Hierarchy This Package Previous Next Index