def close(self):
        logger.info("Stop server")
        self.stopped.set()
        for event in self.to_be_stopped:
            event.set()
        self._socket.close()
Stop the server.
dataset/ETHPy150Open Tanganelli/CoAPthon/coapthon/server/coap.py/CoAP.close