Exemplo n.º 1
0
        public void xdrEncode(XdrEncodingStream xdr)
        {
            xdr.xdrEncodeInt(resop);
            switch (resop)
            {
                case nfs_cb_opnum4.OP_CB_GETATTR:
                    opcbgetattr.xdrEncode(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_RECALL:
                    opcbrecall.xdrEncode(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_LAYOUTRECALL:
                    opcblayoutrecall.xdrEncode(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_NOTIFY:
                    opcbnotify.xdrEncode(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_PUSH_DELEG:
                    opcbpush_deleg.xdrEncode(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_RECALL_ANY:
                    opcbrecall_any.xdrEncode(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_RECALLABLE_OBJ_AVAIL:
                    opcbrecallable_obj_avail.xdrEncode(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_RECALL_SLOT:
                    opcbrecall_slot.xdrEncode(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_SEQUENCE:
                    opcbsequence.xdrEncode(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_WANTS_CANCELLED:
                    opcbwants_cancelled.xdrEncode(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_NOTIFY_LOCK:
                    opcbnotify_lock.xdrEncode(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_NOTIFY_DEVICEID:
                    opcbnotify_deviceid.xdrEncode(xdr);
                    break;

                case nfs_cb_opnum4.OP_CB_ILLEGAL:
                    opcbillegal.xdrEncode(xdr);
                    break;
            }
        }