示例#1
0
 def init_herald(self, herald_cfg: Dict[str, Any]):
     """Create a :class:`Link` and bind :class:`Event`."""
     herald_cfg["name"] = self.interface_name
     self.herald: rh.Link = rh.Link(rh.Config.from_config(**herald_cfg),
                                    self.network_handler)
示例#2
0
 def init_herald(self, herald_cfg: Dict[str, Any]):
     """Create a :class:`rh.Link`."""
     herald_cfg["name"] = "constellation"
     self.herald: rh.Link = rh.Link(rh.Config.from_config(**herald_cfg),
                                    self.network_handler)