try: from ._omnisocket import ( MSG_TYPE_BINARY, MSG_TYPE_ERROR, MSG_TYPE_FILE, MSG_TYPE_REGISTER, MSG_TYPE_TEXT, Session, UdpSession, ) except ImportError as exc: raise ImportError( "omnisocket extension is not built; run `make python-ext` on a Linux host first" ) from exc CONTROL_DEFAULTS = { "nodelay": 1, "interval_ms": 5, "resend": 2, "nc": 1, "sndwnd": 32, "rcvwnd": 32, "mtu": 1400, } VIDEO_DEFAULTS = { "nodelay": 1, "interval_ms": 10, "resend": 2, "nc": 1, "sndwnd": 256, "rcvwnd": 256, "mtu": 1400, } TELEMETRY_DEFAULTS = { "nodelay": 0, "interval_ms": 50, "resend": 0, "nc": 0, "sndwnd": 64, "rcvwnd": 64, "mtu": 1400, } __all__ = [ "CONTROL_DEFAULTS", "TELEMETRY_DEFAULTS", "VIDEO_DEFAULTS", "MSG_TYPE_BINARY", "MSG_TYPE_ERROR", "MSG_TYPE_FILE", "MSG_TYPE_REGISTER", "MSG_TYPE_TEXT", "Session", "UdpSession", ]