Algorithms
Server-Client Communication
Server – Client communication algorithm for web pages
Client algorithm
Server
There are multiple ways of designing such a client-server communication protocol. Waiting (or listening) for a request/response may require a loop or an event/interrupt driven solution. Please consider the exceptional cases of the algorithm where a timeout, error, or disconnection may occur. Think about the recovery steps for such cases in both sides of the communication.