Exemple #1
0
            public void Read(TProtocol iprot)
            {
                TField field;

                iprot.ReadStructBegin();
                while (true)
                {
                    field = iprot.ReadFieldBegin();
                    if (field.Type == TType.Stop)
                    {
                        break;
                    }
                    switch (field.ID)
                    {
                    case 1:
                        if (field.Type == TType.Struct)
                        {
                            this.req = new AppendLogRequest();
                            this.req.Read(iprot);
                            this.__isset.req = true;
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    default:
                        TProtocolUtil.Skip(iprot, field.Type);
                        break;
                    }
                    iprot.ReadFieldEnd();
                }
                iprot.ReadStructEnd();
            }
Exemple #2
0
            public void send_appendLog(AppendLogRequest req)
            {
                oprot_.WriteMessageBegin(new TMessage("appendLog", TMessageType.Call, seqid_));
                appendLog_args args = new appendLog_args();

                args.Req = req;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
                oprot_.Transport.Flush();
            }
Exemple #3
0
 public AppendLogResponse appendLog(AppendLogRequest req)
 {
     send_appendLog(req);
     return(recv_appendLog());
 }