listenurl = ipc:///tmp/responses
[storage]
-dbfn = gps303.sqlite
+dbfn = /home/crosser/src/gps303/gps303.sqlite
[opencellid]
-dbfn = opencellid.sqlite
+dbfn = /home/crosser/src/gps303/opencellid.sqlite
[termconfig]
statusIntervalMinutes = 25
from configparser import ConfigParser
from getopt import getopt
from logging import getLogger, StreamHandler, DEBUG, INFO
+from logging.handlers import SysLogHandler
from sys import argv, stderr, stdout
CONF = "/etc/gps303.conf"
__all__ = (
"class_by_prefix",
- "handle_packet",
"inline_response",
"make_object",
- "make_response",
"parse_message",
"proto_by_name",
"Dir",
adjust,
)
return make_object(length, proto, payload)
-
-
-def handle_packet(packet): # DEPRECATED
- if len(packet) < 6 or packet[:2] != b"xx" or packet[-2:] != b"\r\n":
- return UNKNOWN.from_packet(len(packet), packet)
- return parse_message(packet[2:-2])
-
-
-def make_response(msg, **kwargs): # DEPRECATED
- inframe = msg.response(**kwargs)
- return None if inframe is None else b"xx" + inframe + b"\r\n"