Exemplo n.º 1
0
        public void xdrDecode(XdrDecodingStream xdr)
        {
            resop = xdr.xdrDecodeInt();
            switch (resop)
            {
                case nfs_cb_opnum4.OP_CB_GETATTR:
                    opcbgetattr = new CB_GETATTR4res(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_RECALL:
                    opcbrecall = new CB_RECALL4res(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_LAYOUTRECALL:
                    opcblayoutrecall = new CB_LAYOUTRECALL4res(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_NOTIFY:
                    opcbnotify = new CB_NOTIFY4res(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_PUSH_DELEG:
                    opcbpush_deleg = new CB_PUSH_DELEG4res(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_RECALL_ANY:
                    opcbrecall_any = new CB_RECALL_ANY4res(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_RECALLABLE_OBJ_AVAIL:
                    opcbrecallable_obj_avail = new CB_RECALLABLE_OBJ_AVAIL4res(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_RECALL_SLOT:
                    opcbrecall_slot = new CB_RECALL_SLOT4res(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_SEQUENCE:
                    opcbsequence = new CB_SEQUENCE4res(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_WANTS_CANCELLED:
                    opcbwants_cancelled = new CB_WANTS_CANCELLED4res(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_NOTIFY_LOCK:
                    opcbnotify_lock = new CB_NOTIFY_LOCK4res(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_NOTIFY_DEVICEID:
                    opcbnotify_deviceid = new CB_NOTIFY_DEVICEID4res(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_ILLEGAL:
                    opcbillegal = new CB_ILLEGAL4res(xdr);
                    break;
            }
        }
Exemplo n.º 2
0
 public void xdrDecode(XdrDecodingStream xdr) {
     resop = xdr.xdrDecodeInt();
     switch ( resop ) {
     case nfs_cb_opnum4.OP_CB_GETATTR:
         opcbgetattr = new CB_GETATTR4res(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_RECALL:
         opcbrecall = new CB_RECALL4res(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_LAYOUTRECALL:
         opcblayoutrecall = new CB_LAYOUTRECALL4res(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_NOTIFY:
         opcbnotify = new CB_NOTIFY4res(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_PUSH_DELEG:
         opcbpush_deleg = new CB_PUSH_DELEG4res(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_RECALL_ANY:
         opcbrecall_any = new CB_RECALL_ANY4res(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_RECALLABLE_OBJ_AVAIL:
         opcbrecallable_obj_avail = new CB_RECALLABLE_OBJ_AVAIL4res(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_RECALL_SLOT:
         opcbrecall_slot = new CB_RECALL_SLOT4res(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_SEQUENCE:
         opcbsequence = new CB_SEQUENCE4res(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_WANTS_CANCELLED:
         opcbwants_cancelled = new CB_WANTS_CANCELLED4res(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_NOTIFY_LOCK:
         opcbnotify_lock = new CB_NOTIFY_LOCK4res(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_NOTIFY_DEVICEID:
         opcbnotify_deviceid = new CB_NOTIFY_DEVICEID4res(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_ILLEGAL:
         opcbillegal = new CB_ILLEGAL4res(xdr);
         break;
     }
 }