public void HelloInt_Process(int seqid, TProtocol iprot, TProtocol oprot) { HelloInt_args args = new HelloInt_args(); args.Read(iprot); iprot.ReadMessageEnd(); HelloInt_result result = new HelloInt_result(); result.Success = iface_.HelloInt(args.Para); oprot.WriteMessageBegin(new TMessage("HelloInt", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public int recv_HelloInt() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } HelloInt_result result = new HelloInt_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "HelloInt failed: unknown result"); }