예제 #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);
 }
예제 #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();
 }
예제 #3
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);
 }
예제 #4
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     dsa_sessionid = new sessionid4(xdr);
 }
예제 #5
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     dsa_sessionid = new sessionid4(xdr);
 }
예제 #6
0
        private void destroy_session()
        {
            if (_sessionid != null)
            {
                List<nfs_argop4> ops = new List<nfs_argop4>();

                ops.Add(DestroySessionStub.standard(_sessionid));

                COMPOUND4res compound4res = sendCompound(ops, "");
                _sessionid = null;
            }
        }
예제 #7
0
        private void create_session()
        {
            List<nfs_argop4> ops = new List<nfs_argop4>();

            ops.Add(CreateSessionStub.standard(_clientIdByServer, _sequenceID));

            COMPOUND4res compound4res = sendCompound(ops, "");

            if (compound4res.status == nfsstat4.NFS4_OK)
            {

                _sessionid = compound4res.resarray[0].opcreate_session.csr_resok4.csr_sessionid;
                // FIXME: no idea why, but other wise server reply MISORDER
                _sequenceID.value.value = 0;

                maxTRrate = compound4res.resarray[0].opcreate_session.csr_resok4.csr_fore_chan_attrs.ca_maxrequestsize.value.value;
                maxRXrate = compound4res.resarray[0].opcreate_session.csr_resok4.csr_fore_chan_attrs.ca_maxresponsesize.value.value;

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