예제 #1
0
 public void openScanner_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     openScanner_args args = new openScanner_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     openScanner_result result = new openScanner_result();
     try {
       result.Success = iface_.openScanner(args.Table, args.Scan);
     } catch (TIOError io) {
       result.Io = io;
     }
     oprot.WriteMessageBegin(new TMessage("openScanner", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
예제 #2
0
 public int recv_openScanner()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception) {
       TApplicationException x = TApplicationException.Read(iprot_);
       iprot_.ReadMessageEnd();
       throw x;
     }
     openScanner_result result = new openScanner_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     if (result.__isset.success) {
       return result.Success;
     }
     if (result.__isset.io) {
       throw result.Io;
     }
     throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "openScanner failed: unknown result");
 }