Basic structure and basic protocol for the server