Beispiel #1
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     csr_sessionid = new sessionid4(xdr);
     csr_sequence = new sequenceid4(xdr);
     csr_flags = new uint32_t(xdr);
     csr_fore_chan_attrs = new channel_attrs4(xdr);
     csr_back_chan_attrs = new channel_attrs4(xdr);
 }
Beispiel #2
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     sa_sessionid      = new sessionid4(xdr);
     sa_sequenceid     = new sequenceid4(xdr);
     sa_slotid         = new slotid4(xdr);
     sa_highest_slotid = new slotid4(xdr);
     sa_cachethis      = xdr.xdrDecodeBoolean();
 }
 public void xdrDecode(XdrDecodingStream xdr)
 {
     csr_sessionid = new sessionid4(xdr);
     csr_sequence = new sequenceid4(xdr);
     csr_flags = new uint32_t(xdr);
     csr_fore_chan_attrs = new channel_attrs4(xdr);
     csr_back_chan_attrs = new channel_attrs4(xdr);
 }
Beispiel #4
0
 public void xdrDecode(XdrDecodingStream xdr)
     {
     sa_sessionid = new sessionid4(xdr);
     sa_sequenceid = new sequenceid4(xdr);
     sa_slotid = new slotid4(xdr);
     sa_highest_slotid = new slotid4(xdr);
     sa_cachethis = xdr.xdrDecodeBoolean();
 }
Beispiel #5
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     sr_sessionid             = new sessionid4(xdr);
     sr_sequenceid            = new sequenceid4(xdr);
     sr_slotid                = new slotid4(xdr);
     sr_highest_slotid        = new slotid4(xdr);
     sr_target_highest_slotid = new slotid4(xdr);
     sr_status_flags          = new uint32_t(xdr);
 }
Beispiel #6
0
 public void xdrDecode(XdrDecodingStream xdr)
       {
     sr_sessionid = new sessionid4(xdr);
     sr_sequenceid = new sequenceid4(xdr);
     sr_slotid = new slotid4(xdr);
     sr_highest_slotid = new slotid4(xdr);
     sr_target_highest_slotid = new slotid4(xdr);
     sr_status_flags = new uint32_t(xdr);
 }
Beispiel #7
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); } }
 }
    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); } }
    }
Beispiel #9
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); } }
 }
Beispiel #10
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)); }


        }