PseudoFlow

This document is a conglomeration of the other three files. It shows the order of execution for the lines of pseudocode.

  PseudoListener PseudoClient PseudoProcessor
1. PseudoListener is started    
2. main method opens a socket that listens on a particular port    
3. main method waits for a connection request    
4.   PseudoClient is started  
5.   main method takes one command line argument - the name of the file desired  
6.   main method requests a connection to the Server (Listener) on a particular port   
7. main method accepts connection request    
8. main method passes the connection to a new processor    
9.     constructor takes a connection as an argument
10. main method starts the processor thread    
11.     run method opens the OutputStream of the connection
12.     run method opens the InputStream of the connection
13.     run method reads the file name from the InputStream
14.   main method opens the OutputStream of the connection  
15.   main method opens the InputStream of the connection  
16.   main method writes the name of the file to the OutputStream  
17.     run method opens the file as a Reader
18.     run method reads from the Reader until null, writing the input to the OutputStream of the connection 
19.   main method reads InputStream until null, printing to DOS window  
20.      run method closes socket connection
21.     terminates
22.     terminates