- implemented the server's listener according to the protocol