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

Variable Index

 o bioserverSocket

Constructor Index

 o bioserver(int)
The constructor for bioserver

Method Index

 o main(String[])
The method is alway called in an application
 o processCommand(String)
This method is where everything important is happening.
 o run()
This is where the server (as a thread) spends its time.

Variables

 o bioserverSocket
 public ServerSocket bioserverSocket

Constructors

 o bioserver
 public bioserver(int port)
The constructor for bioserver

Parameters:
port - The port number assigned to this server

Methods

 o 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
 o 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
 o 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