Data Processing
The Network Control is running in a separate thread than the Controller.
When processing the user login, the information is bundled up into a SendEvent and passed on to the Network Control.
The Network Control sends the event to the Encode class to be encoded into a URL string.
The the Network Control sends this string to the Send class to be sent to the server.
The Server information is stored in a class called ProxyInfo.class. If the server information changed, the class can be removed and replaced with the correct information.
When the information is sent, it opens a URL connection.
- This sends back the content, which is a Buffered Input Stream.
- The stream is passed by the Network Control to the Receive Class.
- The Receive classes parses each line of information, sends it to the Decode class to be parsed further and sent to the Network Control.
- The Network Control packages it up into a ReceiveEvent and sends it to the Controller to be processed and sent to the GUI.