예제 #1
0
 public void recv_TestNetwork()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   TestNetwork_result result = new TestNetwork_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   return;
 }
예제 #2
0
 public void TestNetwork_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   TestNetwork_args args = new TestNetwork_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   TestNetwork_result result = new TestNetwork_result();
   iface_.TestNetwork(args._homeId, args._count);
   oprot.WriteMessageBegin(new TMessage("TestNetwork", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }