예제 #1
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     this._hostname          = new Name(xdr);
     this._directory         = new NFSHandle();
     this._directory.Version = V2.RPC.NFSv2Protocol.NFS_VERSION;
     this._directory.xdrDecode(xdr);
     this._nextentry = new MountList(xdr);
 }
예제 #2
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     this._hostname = new Name(xdr);
     this._directory = new NFSHandle();
     this._directory.Version = V2.RPC.NFSv2Protocol.NFS_VERSION;
     this._directory.xdrDecode(xdr);
     this._nextentry = new MountList(xdr);
 }
        /**
         * Call remote procedure MOUNTPROC_DUMP_1.
         * @return Result from remote procedure call (of type mountlist).
         * @throws OncRpcException if an ONC/RPC error occurs.
         * @throws IOException if an I/O error occurs.
         */
        public MountList MOUNTPROC_DUMP()
        {
            XdrVoid   args_   = XdrVoid.XDR_VOID;
            MountList result_ = new MountList();

            client.call(NFSv2MountProtocol.MOUNTPROC_DUMP, NFSv2MountProtocol.MOUNTVERS, args_, result_);

            return(result_);
        }
        /**
         * Call remote procedure MOUNTPROC_DUMP_1.
         * @return Result from remote procedure call (of type mountlist).
         * @throws OncRpcException if an ONC/RPC error occurs.
         * @throws IOException if an I/O error occurs.
         */
        public MountList MOUNTPROC_DUMP()
        {
            XdrVoid args_ = XdrVoid.XDR_VOID;
            MountList result_ = new MountList();

            client.call(NFSv2MountProtocol.MOUNTPROC_DUMP, NFSv2MountProtocol.MOUNTVERS, args_, result_);

            return result_;
        }
예제 #5
0
        public void dispatchOncRpcCall(OncRpcCallInformation call, int program, int version, int procedure)
        {
            if (version == 1)
            {
                switch (procedure)
                {
                case 0:
                {
                    call.retrieveCall(XdrVoid.XDR_VOID);
                    MOUNTPROC_NULL();
                    call.reply(XdrVoid.XDR_VOID);
                    break;
                }

                case 1:
                {
                    Name args_ = new Name();
                    call.retrieveCall(args_);

                    MountStatus result_ = MOUNTPROC_MNT(args_);
                    call.reply(result_);

                    break;
                }

                case 2:
                {
                    call.retrieveCall(XdrVoid.XDR_VOID);
                    MountList result_ = MOUNTPROC_DUMP();

                    call.reply(result_);

                    break;
                }

                case 3:
                {
                    Name args_ = new Name();
                    call.retrieveCall(args_);

                    MOUNTPROC_UMNT(args_);
                    call.reply(XdrVoid.XDR_VOID);

                    break;
                }

                case 4:
                {
                    call.retrieveCall(XdrVoid.XDR_VOID);
                    MOUNTPROC_UMNTALL();

                    call.reply(XdrVoid.XDR_VOID);

                    break;
                }

                case 5:
                {
                    call.retrieveCall(XdrVoid.XDR_VOID);
                    Exports result_ = MOUNTPROC_EXPORT();

                    call.reply(result_);

                    break;
                }

                default:
                {
                    call.failProcedureUnavailable();
                    break;
                }
                }
            }
            else
            {
                call.failProgramUnavailable();
            }
        }