The server will contain the main(String[] args) method and will instantiate an instance of the WordSearcher object
Question:
The server will contain the main(String[] args) method and will instantiate an instance of the WordSearcher object defined above. After that it will open a ServerSocket and bind it to an available port. For my own system the port 1236 was open, but this may be different on your home computer. The server will sit in a while loop performing the following steps: 1. Accept client socket connection 2. Set up input/output streams from client connection 3. Read in String from client 4. Pass String to WordSearcher object, receive List output 5. Transmit List to client 6. Close Connection 7. Return to top of while loop Recommended communication format is detailed below. If you want to include a special "shutdown" command that causes the server to exit its while loop that is fine. You may also have while(1) to make a loop that runs forever and must be shut down manually in Eclipse.
Java How To Program Late Objects Version
ISBN: 9780136123712
8th Edition
Authors: Paul Deitel, Deitel & Associates