#!/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()