/// <summary> /// Create a new server. /// Have the server start listening for requests. /// Part of UC-01 R01 /// </summary> public GMCoordinator() { //create server host = new Server(); host.StartServer(); host.StatusChanged += new StatusChangedEventHandler(receiveMessage); ResetGMCoordinator(); }
public Connection(TcpClient tcpCon, Server h) { tcpClient = tcpCon; host = h; // numberOFAI = numb; // Check if the User has sent the right information senderThread = new Thread(AcceptClient); // The thread calls the AcceptClient() method senderThread.Start(); }