Implements the server side of the SPICE protocol