/// <summary>
        /// Returns the sniffer config handler
        /// </summary>
        /// <param name="volunteer"></param>
        /// <returns></returns>
        public static SnifferConfigHandler GetSnifferConfigHandler()
        {
            if (_snifferConfigHandler == null)
                    _snifferConfigHandler = new SnifferConfigHandler();

            return _snifferConfigHandler;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Private constructor
        /// </summary>
        private Sniffer()
        {
            _PORT = Configurations.SnifferPort;

            //Get the sniffer config handler
            _snifferConfigHandler = SnifferConfigHandler.GetSnifferConfigHandler();

            //Create the DB Utility
            _DBUtility = DBUtility.CreateDBUtility(Configurations.DatabaseName, Configurations.User);

            //Initialize
            _IsAllowedURL = false;
        }