public DatasetSender(string configFile)
        {
            DatasetConfigurationSection sect = DatasetConfigurationSection.Deserialize(configFile);
            IPEndPoint ep = new IPEndPoint(IPAddress.Any, 0);

            if (sect.SourceConfig != null)
            {
                ep.Address = IPAddress.Parse(sect.SourceConfig.BindTo);
                ep.Port    = sect.SourceConfig.Port;
            }
            InitializeDataSender(ep);
        }
        public DatasetClient(string group, string configFile)
        {
            // load the client config
            DatasetConfigurationSection configSection = DatasetConfigurationSection.Deserialize(configFile);

            if (configSection.ClientConfig != null)
            {
                localEndPoint = new IPEndPoint(IPAddress.Parse(configSection.ClientConfig.BindTo), configSection.ClientConfig.Port);
                multicastAddr = IPAddress.Parse(configSection.ClientConfig.MulticastAddress);
                if (!configSection.ClientConfig.Multicast || multicastAddr.Equals(IPAddress.Any))
                {
                    multicastAddr = null;
                }
            }

            Initialize(localEndPoint, group);
        }