public void CreateServer() { server = new TcpListener(IPAddress.Loopback, 10103); server.Start(); presentation = new Presentation("localhost", 10103); connection = server.AcceptTcpClient(); }
public void ResetServer() { presentation.Close(); connection.Close(); presentation = new Presentation("localhost", 10103); connection = server.AcceptTcpClient(); while (server.Pending()) server.AcceptTcpClient().Close(); }