Mercurial > hg > Database > Christie-sharp
view daemon/Config.cs @ 71:1169915705ab default tip
fix TopologyNode connect
author | KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 06 Feb 2022 16:47:41 +0900 |
parents | 960fc3820613 |
children |
line wrap: on
line source
using System.Net.Security; namespace Christie_net.daemon { public class Config { public int localPort = 10000; public string logFile = null; public string MCSTADDR = "224.0.0.1"; //public AuthenticationLevel public string nis = "en1"; public bool useKeepAlive = true; public Config(string[] args) { for (int i = 0; i< args.Length; i++) { if ("--log".Equals(args[i])) { logFile = args[++i]; } else if ("--localPort".Equals(args[i])) { localPort = int.Parse(args[++i]); } else if ("-n".Equals(args[i])) { nis = args[++i]; } else if ("--noKeepAlive".Equals(args[i])) { useKeepAlive = false; } else if ("-a".Equals(args[i])) { MCSTADDR = args[++i]; } // else if ("--level") { // // } } } } }