Ejemplo n.º 1
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     this._dir = new NFSHandle();
     this._dir.Version = V2.RPC.NFSv2Protocol.NFS_VERSION;
     this._dir.xdrDecode(xdr);
     this._name = new Name(xdr);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
        public void xdrDecode(XdrDecodingStream xdr)
        {
            this._status = (NFSStats)xdr.xdrDecodeInt();

            switch (this._status)
            {
                case NFSStats.NFS_OK:
                    this._linkname = new Name(xdr);
                    break;
                default:
                    break;
            }
        }
Ejemplo n.º 4
0
        /**
         * Call remote procedure MOUNTPROC_UMNT_1.
         * @param arg1 parameter (of type dirpath) to the remote procedure call.
         * @throws OncRpcException if an ONC/RPC error occurs.
         * @throws IOException if an I/O error occurs.
         */
        public void MOUNTPROC_UMNT(Name arg1)
        {
            XdrVoid result_ = XdrVoid.XDR_VOID;

            client.call(NFSv2MountProtocol.MOUNTPROC_UMNT, NFSv2MountProtocol.MOUNTVERS, arg1, result_);
        }
Ejemplo n.º 5
0
        /**
         * Call remote procedure MOUNTPROC_MNT_1.
         * @param arg1 parameter (of type dirpath) to the remote procedure call.
         * @return Result from remote procedure call (of type fhstatus).
         * @throws OncRpcException if an ONC/RPC error occurs.
         * @throws IOException if an I/O error occurs.
         */
        public MountStatus MOUNTPROC_MNT(Name arg1)
        {
            MountStatus result_ = new MountStatus();

            client.call(NFSv2MountProtocol.MOUNTPROC_MNT, NFSv2MountProtocol.MOUNTVERS, arg1, result_);

            return result_;
        }
Ejemplo n.º 6
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     this._grname = new Name(xdr);
     this._grnext = new Groups(xdr);
 }
Ejemplo n.º 7
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     this._from = new ItemOperationArguments(xdr);
     this._to = new Name(xdr);
     this._attributes = new CreateAttributes(xdr);
 }
Ejemplo n.º 8
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     this._symlink_attributes = new PostOperationAttributes(xdr);
     this._data = new Name(xdr);
 }
Ejemplo n.º 9
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     this._hostname = new Name(xdr);
     this._directory = new Name(xdr);
     this._nextentry = new MountList(xdr);
 }
        public void dispatchOncRpcCall(OncRpcCallInformation call, int program, int version, int procedure)
        {
            if (version == 3)
            {
                switch (procedure)
                {
                    case 0:
                        {
                            call.retrieveCall(XdrVoid.XDR_VOID);
                            MOUNTPROC3_NULL();
                            call.reply(XdrVoid.XDR_VOID);

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

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

                            break;
                        }
                    case 2:
                        {
                            call.retrieveCall(XdrVoid.XDR_VOID);
                            MountList result_ = MOUNTPROC3_DUMP();
                            call.reply(result_);

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

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

                            break;
                        }
                    case 4:
                        {
                            call.retrieveCall(XdrVoid.XDR_VOID);
                            MOUNTPROC3_UMNTALL();
                            call.reply(XdrVoid.XDR_VOID);

                            break;
                        }
                    case 5:
                        {
                            call.retrieveCall(XdrVoid.XDR_VOID);
                            Exports result_ = MOUNTPROC3_EXPORT();
                            call.reply(result_);
                            
                            break;
                        }
                    default:
                        {
                            call.failProcedureUnavailable();
                            break;
                        }
                }
            }
            else
            { call.failProgramUnavailable(); }
        }
 public abstract void MOUNTPROC3_UMNT(Name arg1);
 public abstract MountStatus MOUNTPROC3_MNT(Name arg1);
Ejemplo n.º 13
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     this._symlink_attributes = new MakeAttributes(xdr);
     this._symlink_data = new Name(xdr);
 }
Ejemplo n.º 14
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     this._mountpath = new Name(xdr);
     this._exgroups = new Groups(xdr);
     this._next = new Exports(xdr);
 }