import zmq
from . import common
+from .protomodule import ProtoModule
from .zmsg import Bcast
log = getLogger("loctrkd/watch")
-class ProtoModule:
- @staticmethod
- def proto_handled(proto: str) -> bool:
- ...
-
- @staticmethod
- def parse_message(packet: bytes, is_incoming: bool = True) -> Any:
- ...
-
-
pmods: List[ProtoModule] = []
global pmods
pmods = [
cast(ProtoModule, import_module("." + modnm, __package__))
- for modnm in conf.get("collector", "protocols").split(",")
+ for modnm in conf.get("common", "protocols").split(",")
]
# Is this https://github.com/zeromq/pyzmq/issues/1627 still not fixed?!
zctx = zmq.Context() # type: ignore