Beispiel #1
0
        public void ping_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            ping_args args = new ping_args();

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

            try
            {
                iface_.ping();
                oprot.WriteMessageBegin(new TMessage("ping", TMessageType.Reply, seqid));
                result.Write(oprot);
            }
            catch (TTransportException)
            {
                throw;
            }
            catch (Exception ex)
            {
                Console.Error.WriteLine("Error occurred in processor:");
                Console.Error.WriteLine(ex.ToString());
                TApplicationException x = new TApplicationException(TApplicationException.ExceptionType.InternalError, " Internal error.");
                oprot.WriteMessageBegin(new TMessage("ping", TMessageType.Exception, seqid));
                x.Write(oprot);
            }
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }
Beispiel #2
0
            public void ping_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                ping_args args = new ping_args();

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

                iface_.ping();
                oprot.WriteMessageBegin(new TMessage("ping", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
Beispiel #3
0
            public void recv_ping()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                return;
            }
Beispiel #4
0
        public ExtensionStatus recv_ping()
        {
            TMessage msg = iprot_.ReadMessageBegin();

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

            result.Read(iprot_);
            iprot_.ReadMessageEnd();
            if (result.__isset.success)
            {
                return(result.Success);
            }
            throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "ping failed: unknown result");
        }
 public void ping_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   ping_args args = new ping_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   ping_result result = new ping_result();
   iface_.ping();
   oprot.WriteMessageBegin(new TMessage("ping", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
 public void recv_ping()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   ping_result result = new ping_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   return;
 }
 public void ping_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   ping_args args = new ping_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   ping_result result = new ping_result();
   try {
     result.Success = iface_.ping(args.AuthString);
   } catch (org.phybros.thrift.EAuthException aex) {
     result.Aex = aex;
   }
   oprot.WriteMessageBegin(new TMessage("ping", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
 public bool recv_ping()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   ping_result result = new ping_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   if (result.__isset.aex) {
     throw result.Aex;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "ping failed: unknown result");
 }