Esempio n. 1
0
        public void xdrDecode(XdrDecodingStream xdr)
        {
            argop = xdr.xdrDecodeInt();
            switch (argop)
            {
                case nfs_cb_opnum4.OP_CB_GETATTR:
                    opcbgetattr = new CB_GETATTR4args(xdr);
                    break;

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

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

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

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

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

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

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

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

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

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

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

                case nfs_cb_opnum4.OP_CB_ILLEGAL:
                    break;
            }
        }
Esempio n. 2
0
 public void xdrDecode(XdrDecodingStream xdr) {
     argop = xdr.xdrDecodeInt();
     switch ( argop ) {
     case nfs_cb_opnum4.OP_CB_GETATTR:
         opcbgetattr = new CB_GETATTR4args(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_RECALL:
         opcbrecall = new CB_RECALL4args(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_LAYOUTRECALL:
         opcblayoutrecall = new CB_LAYOUTRECALL4args(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_NOTIFY:
         opcbnotify = new CB_NOTIFY4args(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_PUSH_DELEG:
         opcbpush_deleg = new CB_PUSH_DELEG4args(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_RECALL_ANY:
         opcbrecall_any = new CB_RECALL_ANY4args(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_RECALLABLE_OBJ_AVAIL:
         opcbrecallable_obj_avail = new CB_RECALLABLE_OBJ_AVAIL4args(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_RECALL_SLOT:
         opcbrecall_slot = new CB_RECALL_SLOT4args(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_SEQUENCE:
         opcbsequence = new CB_SEQUENCE4args(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_WANTS_CANCELLED:
         opcbwants_cancelled = new CB_WANTS_CANCELLED4args(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_NOTIFY_LOCK:
         opcbnotify_lock = new CB_NOTIFY_LOCK4args(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_NOTIFY_DEVICEID:
         opcbnotify_deviceid = new CB_NOTIFY_DEVICEID4args(xdr);
         break;
     case nfs_cb_opnum4.OP_CB_ILLEGAL:
         break;
     }
 }