Blame view

sockets_tele/server_run.py 397 Bytes
fc6ea9bc   Etienne Pallier   socket client pou...
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python3

from src.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()