server_telescope_gemini_simulator_run.py 555 Bytes
#!/usr/bin/env python3

import sys


sys.path.append("..")
from devices_controller.devices_controller_concrete.device_simulator_common.server_udp_or_tcp import get_SocketServer_UDP_TCP
#from server.server_udp_or_tcp import get_SocketServer_UDP_TCP

HOST, PORT = "localhost", 11110
#HOST, PORT = "localhost", 9999
#HOST, PORT = "localhost", 20001

if __name__ == "__main__":
    #with socketserver_type((HOST, PORT), MyUDPorTCPHandler_classic) as myserver:
    with get_SocketServer_UDP_TCP(HOST, PORT, "UDP") as myserver:
        myserver.serve_forever()