Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1from logging import getLogger
2from ..client import ClientIf
3from ..server import ServerIf
5from .parse import parse_file
7log = getLogger(__name__)
10class Server(ServerIf):
11 def __init__(self, addr: str, params: dict = {}):
12 super().__init__(addr, params)
13 src = self.params.get("source", None)
14 if src is not None:
15 res = parse_file(src)
16 log.debug("parsed %s", res)
18 def serve(self, dispatcher):
19 pass
22class Client(ClientIf):
23 def __init__(self, addr: str, params: dict = {}):
24 super().__init__(addr, params)
25 src = self.params.get("source", None)
26 if src is not None:
27 res = parse_file(src)
28 log.debug("parsed %s", res)
30 def call(self, method: str, params=None):
31 pass