Ejemplo n.º 1
0
from src.Server import Server
from src.util.Logger import LogFormatter, logger


if __name__ == "__main__":
    LogFormatter.debugMode(True)
    Server.run()
    logger.info("Server has been successfully stopped.")
Ejemplo n.º 2
0
import sys
from src.Server import Server
from src.Client import Client

if len(sys.argv) > 1:
    client = Client(sys.argv[1], sys.argv[2])
    client.run()
else:
    server = Server()
    server.run()