Ejemplo n.º 1
0
 public void Test_ManyConnections()
 {
     //should able to run just fine, might throw error if port is already in use
     using(BasicServer basicServer = new BasicServer())
     {
         for(int i = 0; i < 100; i++)
         {
             BasicPeer peer = new BasicPeer("127.0.0.1", 444);
         }
     }
 }
Ejemplo n.º 2
0
 public void Test_RunBasicServer()
 {
     //should able to run just fine, might throw error if port is already in use
     BasicServer basicServer = new BasicServer();
     basicServer.Dispose();
 }