def start_service(self):
     """
     Starts the zeroconfservice
     """
     self.service = ZeroConfService(name=platform.node(), port=self.port,
         stype="_pydra._tcp")
     self.service.publish()
class NodeZeroConfService(Module):
    """
    Module that publishes the node port using ZeroConfService (avahi)
    """

    _shared = [
        'port',
        'host'
    ]

    def __init__(self):

        self._listeners = {
            'MANAGER_INIT':self.start_service
        }


    def start_service(self):
        """
        Starts the zeroconfservice
        """
        self.service = ZeroConfService(name=platform.node(), port=self.port,
            stype="_pydra._tcp")
        self.service.publish()