def close(self):
        logger.info("Stop server")
        self.stopped.set()
        for event in self.to_be_stopped:
            event.set()
        self._socket.close()
Calculates a checksum with the provided algorithm.
dataset/ETHPy150Open Tanganelli/CoAPthon/coapthon/server/coap.py/CoAP.close--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/contrib/localflavor/pl/forms.py/PLREGONField.has_valid_checksum