Exemplo n.º 1
0
    public void xdrDecode(XdrDecodingStream xdr)
 {
        eir_clientid = new clientid4(xdr);
        eir_sequenceid = new sequenceid4(xdr);
        eir_flags = new uint32_t(xdr);
        eir_state_protect = new state_protect4_r(xdr);
        eir_server_owner = new server_owner4(xdr);
        eir_server_scope = xdr.xdrDecodeDynamicOpaque();
        { int size = xdr.xdrDecodeInt(); eir_server_impl_id = new nfs_impl_id4[size]; for ( int idx = 0; idx < size; ++idx ) { eir_server_impl_id[idx] = new nfs_impl_id4(xdr); } }
    }
Exemplo n.º 2
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     eir_clientid = new clientid4(xdr);
     eir_sequenceid = new sequenceid4(xdr);
     eir_flags = new uint32_t(xdr);
     eir_state_protect = new state_protect4_r(xdr);
     eir_server_owner = new server_owner4(xdr);
     eir_server_scope = xdr.xdrDecodeDynamicOpaque();
     { int size = xdr.xdrDecodeInt(); eir_server_impl_id = new nfs_impl_id4[size]; for (int idx = 0; idx < size; ++idx) { eir_server_impl_id[idx] = new nfs_impl_id4(xdr); } }
 }
Exemplo n.º 3
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     csa_clientid = new clientid4(xdr);
     csa_sequence = new sequenceid4(xdr);
     csa_flags = new uint32_t(xdr);
     csa_fore_chan_attrs = new channel_attrs4(xdr);
     csa_back_chan_attrs = new channel_attrs4(xdr);
     csa_cb_program = new uint32_t(xdr);
     { int size = xdr.xdrDecodeInt(); csa_sec_parms = new callback_sec_parms4[size]; for (int idx = 0; idx < size; ++idx) { csa_sec_parms[idx] = new callback_sec_parms4(xdr); } }
 }
Exemplo n.º 4
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     clientid = new clientid4(xdr);
     owner    = xdr.xdrDecodeDynamicOpaque();
 }
Exemplo n.º 5
0
 public void xdrDecode(XdrDecodingStream xdr) {
     dca_clientid = new clientid4(xdr);
 }
Exemplo n.º 6
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     dca_clientid = new clientid4(xdr);
 }
Exemplo n.º 7
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     clientid = new clientid4(xdr);
     owner = xdr.xdrDecodeDynamicOpaque();
 }
Exemplo n.º 8
0
        private void exchange_ids()
        {
            List<nfs_argop4> ops = new List<nfs_argop4>();

            String domain = "localhost";
            String name = "NFS Client ";

            //String guid = System.Environment.MachineName + "@" + domain;
            String guid = System.Guid.NewGuid().ToString();

            ops.Add(ExchengeIDStub.normal(domain, name, guid, NFSv4Protocol.EXCHGID4_FLAG_SUPP_MOVED_REFER + NFSv4Protocol.EXCHGID4_FLAG_USE_NON_PNFS, state_protect_how4.SP4_NONE));

            COMPOUND4res compound4res = sendCompound(ops, "");
            if (compound4res.status == nfsstat4.NFS4_OK)
            {
                /*if (compound4res.resarray[0].opexchange_id.eir_resok4.eir_server_impl_id.Length > 0)
                {
                    string serverId = System.Text.Encoding.UTF8.GetString(compound4res.resarray[0].opexchange_id.eir_resok4.eir_server_impl_id[0].nii_name.value.value);
                }
                else
                {
                    if (compound4res.resarray[0].opexchange_id.eir_resok4.eir_server_owner.so_major_id.Length > 0)
                    {
                        string serverId = System.Text.Encoding.UTF8.GetString(compound4res.resarray[0].opexchange_id.eir_resok4.eir_server_owner.so_major_id);
                        //throw new NFSConnectionException("Server name: ="+serverId);
                    }
                }*/

                _clientIdByServer = compound4res.resarray[0].opexchange_id.eir_resok4.eir_clientid;
                _sequenceID = compound4res.resarray[0].opexchange_id.eir_resok4.eir_sequenceid;

            }
            else { throw new NFSConnectionException(nfsstat4.getErrorString(compound4res.status)); }


        }
Exemplo n.º 9
0
        private void destroy_clientId()
        {
            if (_clientIdByServer != null)
            {
                List<nfs_argop4> ops = new List<nfs_argop4>();

                ops.Add(DestroyClientIdStub.standard(_clientIdByServer));

                COMPOUND4res compound4res = sendCompound(ops, "");
                _clientIdByServer = null;
            }
        }