コード例 #1
0
ファイル: Client.cs プロジェクト: BGCX261/zhimera-svn-to-git
		private void exereciseChord(ChordServer chord)
		{
            for (int i = 0; i < 16; i++)
                Thread.Sleep(10000);

            String sg = "PUT DATA TESTING";
            byte[] byteSg = System.Text.Encoding.ASCII.GetBytes(sg);
            byte[] byteSgKey = Tashjik.Common.UtilityMethod.sha.ComputeHash(byteSg);
            chord.beginPutData(byteSgKey, byteSg, 0, byteSg.Length, null, null);

            for (int i = 0; i < 6; i++)
                Thread.Sleep(10000);

            chord.beginGetData(byteSgKey, new AsyncCallback(processGetDataForExereciseChord), null);
		}
コード例 #2
0
 public RealHalo()
 {
     chordServer = (ChordServer)(TashjikServer.createNew("Chord"));
     Guid chordInstanceGuid = chordServer.getGuid();
 }