コード例 #1
0
        private void ModifyConnections()
        {
            _log.FunctionEntryMessage("modify connections");

            string[] propItems;
            uint     connCount;

            _driverContext.GetNodeInfo("DrvConfig.Connections", out propItems, out connCount);

            uint idxI;

            for (idxI = 0; idxI < connCount; idxI++)
            {
                ModifyConnection(idxI);
            }

            _log.FunctionExitMessage();

            // add a new connection (not using an index)
            if (_driverContext.AddNode("DrvConfig.Connections"))
            {
                // this connection remains with default values

                idxI += 1;
                // add a new connection - uses an index
                if (_driverContext.AddNode("DrvConfig.Connections[" + idxI.ToString() + "]"))
                {
                    // this connection gets the minimum information necessary to be accepted by the driver
                    ModifyConnection(idxI);
                }
            }
        }
コード例 #2
0
        //private void ModifyOptions()
        //{
        //    _log.FunctionEntryMessage("modify options");

        //    _driverContext.IncreaseUnsignedProperty("DrvConfig.Options.MaxNodesPerRead", 1, 1000);
        //    _driverContext.IncreaseUnsignedProperty("DrvConfig.Options.MaxNodesPerWrite", 1, 1000);
        //    _driverContext.IncreaseUnsignedProperty("DrvConfig.Options.MaxNodesPerBrowse", 1, 1000);
        //    _driverContext.IncreaseUnsignedProperty("DrvConfig.Options.MaxNodesPerTranslate", 1, 1000);
        //    _driverContext.IncreaseUnsignedProperty("DrvConfig.Options.MaxMonitoredItemsPerCall", 1, 1000);

        //    _log.FunctionExitMessage();
        //}

        private void ModifyServers()
        {
            _log.FunctionEntryMessage("modify servers");

            string[] propItems;
            uint     srvrCount;

            _driverContext.GetNodeInfo("DrvConfig.Server", out propItems, out srvrCount);

            for (uint idxI = 0; idxI < srvrCount; idxI++)
            {
                ModifyServer(idxI);
            }

            _log.FunctionExitMessage();
        }
コード例 #3
0
        private void ModifyConnections()
        {
            _log.FunctionEntryMessage("modify connections");

            string[] propItems;
            uint     connCount;

            _driverContext.GetNodeInfo("DrvConfig.Connection", out propItems, out connCount);

            for (uint idxI = 0; idxI < connCount; idxI++)
            {
                ModifyConnection(idxI);
            }

            _log.FunctionExitMessage();
        }
コード例 #4
0
        private void ModifyConnections()
        {
            _log.FunctionEntryMessage("modify connections");

            string[] propItems;
            uint     connCount;

            _driverContext.GetNodeInfo("DrvConfig.Connections", out propItems, out connCount);

            uint idxI;

            for (idxI = 0; idxI < connCount; idxI++)
            {
                ModifyConnection(idxI);
            }

            _log.FunctionExitMessage();

            if (_driverContext.AddNode("DrvConfig.Connections[" + idxI.ToString() + "]"))
            {
                //ModifyConnection(idxI);
            }
        }