Esempio n. 1
0
 public static void setup(TestContext ss)
 {
     _server = new TpcServer(12343, new ForumSystemTest());
     _server.start();
     Thread.Sleep(1000);
     forum = new ForumConnectionImpl(TpcServer.LocalIPAddress().ToString(), 12343);
     forum.connect();
 }
Esempio n. 2
0
 public static void setup(TestContext ss)
 {
     _server = new TpcServer(12343, new ForumSystemTest());
     _server.start();
     Thread.Sleep(1000);
     _clients = new List <ForumConnectionImpl>();
     for (int i = 0; i < 100; i++)
     {
         ForumConnectionImpl temp = new ForumConnectionImpl(TpcServer.LocalIPAddress().ToString(), 12343);
         temp.connect();
         _clients.Add(temp);
     }
 }