Basic working structure of the server