3 MoeNavigatorEngine internals
Moritz Strohm edited this page 2 years ago

MoeNavigatorEngine internals


The hierarchy of the main network classes from high to low level are as follows:

Request > NetworkHandler

The tasks for each class are as follows:

  • Request:
    • store URL, (optional) request data and response data
    • create new request objects from an URL (helper method)
    • write out protocol headers and analyse the corresponding response headers from the response data
    • start requests
  • NetworkHandler:
    • open connections to a specific host and port, with or without encryption
    • read request data and send them
    • received response data and store them in the corresponding request object