Esempio n. 1
0
            public void send_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                send_args args = new send_args();

                args.Read(iprot);
                iprot.ReadMessageEnd();
                send_result result = new send_result();

                iface_.send(args.M);
                oprot.WriteMessageBegin(new TMessage("send", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
Esempio n. 2
0
            public void recv_send()
            {
                TMessage msg = iprot_.ReadMessageBegin();

                if (msg.Type == TMessageType.Exception)
                {
                    TApplicationException x = TApplicationException.Read(iprot_);
                    iprot_.ReadMessageEnd();
                    throw x;
                }
                send_result result = new send_result();

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                return;
            }