Esempio n. 1
0
 internal virtual void Reset()
 {
     Flags = unchecked ((byte)(SmbConstants.FlagsPathNamesCaseless | SmbConstants.FlagsPathNamesCanonicalized
                               ));
     Flags2    = 0;
     ErrorCode = 0;
     Received  = false;
     Digest    = null;
 }
Esempio n. 2
0
        /// <exception cref="System.IO.IOException"></exception>
        protected internal override void DoDisconnect(bool hard)
        {
            try
            {
                foreach (var ssn in Sessions)
                {
                    ssn.Logoff(hard);
                }

                Out.Close();
                In.Close();
                Socket.Dispose();
            }
            finally
            {
                Digest       = null;
                Socket       = null;
                TconHostName = null;
            }
        }