/// <summary>
        /// Deep copy constructor.
        /// </summary>
        public SmbFlushResponsePacket(SmbFlushResponsePacket packet)
            : base(packet)
        {
            this.InitDefaultValue();

            this.smbParameters.WordCount = packet.SmbParameters.WordCount;
            this.smbData.ByteCount = packet.SmbData.ByteCount;
        }
Example #2
0
        /// <summary>
        /// Deep copy constructor.
        /// </summary>
        public SmbFlushResponsePacket(SmbFlushResponsePacket packet)
            : base(packet)
        {
            this.InitDefaultValue();

            this.smbParameters.WordCount = packet.SmbParameters.WordCount;
            this.smbData.ByteCount       = packet.SmbData.ByteCount;
        }
        public SmbFlushResponsePacket CreateFlushResponse(
            CifsServerPerConnection connection,
            SmbFlushRequestPacket request)
        {
            SmbFlushResponsePacket response = new SmbFlushResponsePacket();
            response.SmbHeader = CifsMessageUtils.CreateSmbHeader(connection, request);

            return response;
        }