JFiles Server Main StepThrough - rsanchez-wsu/jfiles GitHub Wiki
##main() The main method calls the JFilesServer Creation method with a the value of the constant PORT (9786). In theory this would tell the new server where to listen for new contacts. In the current main build it does not; the creation method uses the constant PORT instead of the value passed to it (which is the same unless the program is edited) so changing this value will not change the port.
##start()
- Start a new thread that will run the run() method of JFIlesServer object.
- The initial thread will now halt.
##run()
- Begin waiting for new contacts, which will be handled by the addthread(Socket socket) method.