Example #1
0
        /// <summary>
        /// Create a FF-message.
        /// </summary>
        /// <param name="Parameters">The list of the parameters without prefixes.</param>
        private void CreateFileFound(params string[] Parameters)
        {
            this.m_strSearchedFileName = Parameters[0];

            int nFiles = (Parameters.Length - 1) / 3;

            m_arrFiles = new FileFound.File[nFiles];

            int i;

            for (int n = 1; n <= nFiles; n++)
            {
                i = n * 3;

                FileFound.File file = new FileFound.File();

                file.Name = Parameters[(i - 2)];
                file.Size = int.Parse(Parameters[(i - 1)]);
                file.SHA1 = Parameters[i];

                m_arrFiles[(n - 1)] = file;
            }
        }
Example #2
0
        /// <summary>
        /// Create a FF-message.
        /// </summary>
        /// <param name="Parameters">The list of the parameters without prefixes.</param>
        private void CreateFileFound(params string[] Parameters)
        {
            this.m_strSearchedFileName = Parameters[0];

            int nFiles = (Parameters.Length - 1) / 3;

            m_arrFiles = new FileFound.File[nFiles];

            int i;

            for (int n = 1; n <= nFiles; n++)
            {
                i = n * 3;

                FileFound.File file = new FileFound.File();

                file.Name = Parameters[(i - 2)];
                file.Size = int.Parse(Parameters[(i - 1)]);
                file.SHA1 = Parameters[i];

                m_arrFiles[(n - 1)] = file;
            }
        }