Blame view

devices_channel/server_run.py 404 Bytes
fc6ea9bc   Etienne Pallier   socket client pou...
1
2
#!/usr/bin/env python3

62e41b8f   Etienne Pallier   BIG REORGANIZATIO...
3
from src_device.server.server_udp_or_tcp import get_SocketServer_UDP_TCP
fc6ea9bc   Etienne Pallier   socket client pou...
4
5
6
7
8
9
10
11
12

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()