예제 #1
0
 public void ListenForMessageTest()
 {
     server.OnNewClientRequest += Server_OnNewMessageRecived;
     NetworkLib.Client client = new NetworkLib.Client("localhost", "30003");
     Assert.IsTrue(client.isConnected());
     Thread.Sleep(1000);
     client.sendMessage("Client//");
     Thread.Sleep(1000);
     server.sendMessage(this.ID, "test");
     server.stopServer();
 }
예제 #2
0
 public void ClientTest()
 {
     NetworkLib.Client client = new NetworkLib.Client("127.0.0.1", "30003");
     Assert.IsTrue(client.isConnected());
     client.stopService();
 }