コード例 #1
0
ファイル: idht.cs プロジェクト: darekfilip/IDHT
 public static IDHT.nodeConf[] read(IceInternal.BasicStream is__)
 {
     IDHT.nodeConf[] v__;
     {
         int szx__ = is__.readSize();
         is__.startSeq(szx__, 11);
         v__ = new IDHT.nodeConf[szx__];
         for(int ix__ = 0; ix__ < szx__; ++ix__)
         {
             v__[ix__] = new IDHT.nodeConf();
             v__[ix__].read__(is__);
             is__.checkSeq();
             is__.endElement();
         }
         is__.endSeq(szx__);
     }
     return v__;
 }
コード例 #2
0
ファイル: idht.cs プロジェクト: darekfilip/IDHT
 public static Ice.DispatchStatus slaveDisconnected___(DHTNode obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.istr();
     is__.startReadEncaps();
     string id;
     id = is__.readString();
     IDHT.range[] newRanges;
     {
         int szx__ = is__.readSize();
         is__.checkFixedSeq(szx__, 8);
         newRanges = new IDHT.range[szx__];
         for(int ix__ = 0; ix__ < szx__; ++ix__)
         {
             newRanges[ix__].read__(is__);
         }
     }
     IDHT.nodeConf[] childRanges;
     {
         int szx__ = is__.readSize();
         is__.startSeq(szx__, 11);
         childRanges = new IDHT.nodeConf[szx__];
         for(int ix__ = 0; ix__ < szx__; ++ix__)
         {
             childRanges[ix__] = new IDHT.nodeConf();
             childRanges[ix__].read__(is__);
             is__.checkSeq();
             is__.endElement();
         }
         is__.endSeq(szx__);
     }
     is__.endReadEncaps();
     obj__.slaveDisconnected(id, newRanges, childRanges, current__);
     return Ice.DispatchStatus.DispatchOK;
 }
コード例 #3
0
ファイル: idht.cs プロジェクト: darekfilip/IDHT
 public IDHT.nodeConf newConnected(string id, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "newConnected", Ice.OperationMode.Normal, context__);
     IDHT.nodeConf result__ = new IDHT.nodeConf();
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         DHTNode servant__ = null;
         try
         {
             servant__ = (DHTNode)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         result__ = servant__.newConnected(id, current__);
         return Ice.DispatchStatus.DispatchOK;
     };
     IceInternal.Direct direct__ = null;
     try
     {
         direct__ = new IceInternal.Direct(current__, run__);
         try
         {
             Ice.DispatchStatus status__ = direct__.servant().collocDispatch__(direct__);
             _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
         }
         finally
         {
             direct__.destroy();
         }
     }
     catch(Ice.SystemException)
     {
         throw;
     }
     catch(System.Exception ex__)
     {
         IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
     }
     return result__;
 }
コード例 #4
0
ファイル: idht.cs プロジェクト: darekfilip/IDHT
 public static Ice.DispatchStatus newConnected___(DHTNode obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.istr();
     is__.startReadEncaps();
     string id;
     id = is__.readString();
     is__.endReadEncaps();
     IceInternal.BasicStream os__ = inS__.ostr();
     IDHT.nodeConf ret__ = obj__.newConnected(id, current__);
     if(ret__ == null)
     {
         IDHT.nodeConf tmp__ = new IDHT.nodeConf();
         tmp__.write__(os__);
     }
     else
     {
         ret__.write__(os__);
     }
     return Ice.DispatchStatus.DispatchOK;
 }
コード例 #5
0
ファイル: idht.cs プロジェクト: darekfilip/IDHT
 public IDHT.nodeConf newConnected(string id, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     IceInternal.Outgoing og__ = handler__.getOutgoing("newConnected", Ice.OperationMode.Normal, context__);
     try
     {
         try
         {
             IceInternal.BasicStream os__ = og__.ostr();
             os__.writeString(id);
         }
         catch(Ice.LocalException ex__)
         {
             og__.abort(ex__);
         }
         bool ok__ = og__.invoke();
         try
         {
             if(!ok__)
             {
                 try
                 {
                     og__.throwUserException();
                 }
                 catch(Ice.UserException ex__)
                 {
                     throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
                 }
             }
             IceInternal.BasicStream is__ = og__.istr();
             is__.startReadEncaps();
             IDHT.nodeConf ret__;
             ret__ = null;
             if(ret__ == null)
             {
                 ret__ = new IDHT.nodeConf();
             }
             ret__.read__(is__);
             is__.endReadEncaps();
             return ret__;
         }
         catch(Ice.LocalException ex__)
         {
             throw new IceInternal.LocalExceptionWrapper(ex__, false);
         }
     }
     finally
     {
         handler__.reclaimOutgoing(og__);
     }
 }