1 | public void run() { |
2 | 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 |
3 | } |
4 | public void stop(): |
5 | This method stops the execution of the module. |
6 | public void destroy() { aSocket.close(); //closes socket connection with applet sp.destroyPort(); //closes socket connection with the other //module } |