Ejemplo n.º 1
0
 public void showdown_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   showdown_args args = new showdown_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   showdown_result result = new showdown_result();
   iface_.showdown(args.Competitor, args.Cards, args.Hand);
   oprot.WriteMessageBegin(new TMessage("showdown", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Ejemplo n.º 2
0
 public void recv_showdown()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   showdown_result result = new showdown_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   return;
 }