Esempio n. 1
0
 public UInt32_ListByte recv_GetNodeNeighbors()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   GetNodeNeighbors_result result = new GetNodeNeighbors_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetNodeNeighbors failed: unknown result");
 }
Esempio n. 2
0
 public void GetNodeNeighbors_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   GetNodeNeighbors_args args = new GetNodeNeighbors_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   GetNodeNeighbors_result result = new GetNodeNeighbors_result();
   result.Success = iface_.GetNodeNeighbors(args._homeId, args._nodeId);
   oprot.WriteMessageBegin(new TMessage("GetNodeNeighbors", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }