Esempio n. 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 SendSnapshotRequest();
                            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();
            }
Esempio n. 2
0
            public void send_sendSnapshot(SendSnapshotRequest req)
            {
                oprot_.WriteMessageBegin(new TMessage("sendSnapshot", TMessageType.Call, seqid_));
                sendSnapshot_args args = new sendSnapshot_args();

                args.Req = req;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
                oprot_.Transport.Flush();
            }
Esempio n. 3
0
 public SendSnapshotResponse sendSnapshot(SendSnapshotRequest req)
 {
     send_sendSnapshot(req);
     return(recv_sendSnapshot());
 }