public void JsonTest3() { ClientSocket cs = new ClientSocket(); Socket s = cs.ConnectToServer(); JsonBytes jb = new JsonBytes(s); try { jb.Recived += PrintObject; } catch (Exception) { } DataClassTrans d1 = new DataClassTrans("test1"); DataClassTrans d2 = new DataClassTrans("test2"); DataClassTrans d3 = new DataClassTrans("test3"); DataClassTrans d4 = new DataClassTrans("test4"); jb.Send(d1); Thread.Sleep(50); jb.Send(d2); Thread.Sleep(50); jb.Send(d3); Thread.Sleep(50); jb.Send(d4); }
public void JsonTest() { ClientSocket cs = new ClientSocket(); Socket s = cs.ConnectToServer(); JsonBytes jb = new JsonBytes(s); DataClassTrans d1 = new DataClassTrans("test1"); DataClassTrans d2 = new DataClassTrans("test2"); DataClassTrans d3 = new DataClassTrans("test3"); DataClassTrans d4 = new DataClassTrans("test4"); jb.Send(d1); Thread.Sleep(50); jb.Send(d2); Thread.Sleep(50); jb.Send(d3); Thread.Sleep(50); jb.Send(d4); }