JFilesClient Main StepThrough - rsanchez-wsu/jfiles GitHub Wiki
JFilesClient.main()
- Create a JFilesClient object given the values localhost for the host and 9786 for the port. As with the server these values are not actually used.
##JFilesClient Creation Method
- Open a connection to a local server on port 9786. If there is no server there, print a error message and exit.
- Run the setup command.
- Run the start command.
##JFilesCLient.setup()
- Look for a configuration file in a list of locations. (Currently there is none.)
- Log host and port values from the config file. These logged values do not affect the function of the program in the current build, as the connection is already open and the variables are not given to the socket opening function anyway.
##JFilesClient.start()
- Set the console variable to the input stream from the console.
- Set the streamOut variable to output to the socket.
- Start a thread that will run the JFilesClients run() method. This will transmit from the console to the socket.
- Start A JFilesThread. This will transmit from the socket to the console.