public NetConfig GetNetworkConfig()
        {
            NetConfig netCfg = new NetConfig();

            netCfg.IpAddr = IniReadValue("NetConfig", "ipaddr");
            netCfg.Port   = Convert.ToInt32(IniReadValue("NetConfig", "port"));

            return(netCfg);
        }
 public void SetNetworkConfig(NetConfig xNetCfg)
 {
     IniWriteValue("NetConfig", "ipaddr", xNetCfg.IpAddr);
     IniWriteValue("NetConfig", "port", xNetCfg.Port.ToString());
 }