public SMBDClient(TimeSpan timeout)
            : base(timeout)
        {
            smbdConnectionTimeout = timeout;

            decoder = new Smb2Decoder(Smb2Role.Client, new System.Collections.Generic.Dictionary <ulong, Smb2CryptoInfo>());

            smbdClient = new SmbdClient();

            messageId = 0;

            clientGuid = Guid.NewGuid();

            sessionId = 0;

            serverGssToken = null;

            creditAvailable = 0;

            negotiated = false;

            endianMap = new Dictionary <RDMAEndian, bool>();
            endianMap.Add(RDMAEndian.BigEndian, true);
            endianMap.Add(RDMAEndian.LittleEndian, false);
        }
Пример #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="smb2ConnectionTimeout">Timeout for SMB2 connection.</param>
        public Smb2OverSmbdTestClient(
            TimeSpan smb2ConnectionTimeout,
            SmbdLogEvent logEvent = null
            )
            : base(smb2ConnectionTimeout)
        {
            this.smb2ConnectionTimeout = smb2ConnectionTimeout;
            this.decoder = new Smb2Decoder(Smb2Role.Client, new Dictionary <UInt64, Smb2CryptoInfo>());

            this.smbdClient = new SmbdClient(
                logEvent);
            this.logEvent    = logEvent;
            ServerConnection = new SmbdConnection();

            messageId = 0;
            this.Smb2AvailableCredits = 1;
        }