Exemple #1
0
            public void sendShortMessage_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                sendShortMessage_args args = new sendShortMessage_args();

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

                try {
                    iface_.sendShortMessage(args.Sm);
                } catch (com.imd.common.thrift.ThriftException e) {
                    result.E = e;
                }
                oprot.WriteMessageBegin(new TMessage("sendShortMessage", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
Exemple #2
0
            public void recv_sendShortMessage()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.__isset.e)
                {
                    throw result.E;
                }
                return;
            }