@classmethod
    @postonly
    @multiplayer_service
    @jsonify
    def unregister(cls):
        remote_addr = get_remote_addr(request)

        params = request.params
        host = params.get('host', remote_addr)
        try:
            hmac = params['hmac']
        except KeyError:
            response.status_int = 400
            return {'ok': False, 'msg': 'Missing session information.'}

        calculated_hmac = _calculate_registration_hmac(cls.secret, remote_addr)
        if hmac != calculated_hmac:
            response.status_int = 400
            return {'ok': False, 'msg': 'Invalid server information.'}

        try:
            server = cls.servers[host]
            del cls.servers[host]
        except __HOLE__:
            response.status_int = 404
            return {'ok': False, 'msg': 'Unknown server IP.'}

        LOG.info('Multiplayer server unregistered from %s:%d', host, server.port)
        return {'ok': True}
dataset/ETHPy150Open turbulenz/turbulenz_local/turbulenz_local/controllers/apiv1/multiplayer.py/MultiplayerController.unregister