add sending udp message on behalf of an non-supporting server

This commit is contained in:
2025-02-13 10:03:26 +01:00
parent 1712415f20
commit aa2069d4f4
4 changed files with 117 additions and 41 deletions

View File

@@ -1,6 +1,7 @@
import sys
from streams import EventStream
from nicoscache import NicosStream
from secop import ScanStream, ScanReply
from secop import ScanStream, ScanReply, send_fake_udp
from influx import testdb
@@ -20,4 +21,7 @@ def main():
db.disconnect()
main()
if len(sys.argv) > 1:
send_fake_udp(*sys.argv[1:])
else:
main()