public void run() { |
filenamesocket = listener.accept(); //creates a socket connection ois = new ObjectInputStream(filenamesocket.getInputStream()); // to receive the input form the user fileName = (String) ois.readObject(); sp.send(fileName); //transmits the user input to the next module |
} |
public void stop(): |
This method stops the execution of the module. |
public void destroy() { aSocket.close(); //closes socket connection with applet sp.destroyPort(); //closes socket connection with the other //module } |