public SmlServer(SmlServerOptions options) { this.options = options; this.serverIP = IPAddress.Parse(this.options.IPAddress); this.server = new DnsServer(this.serverIP, 5, 5); this.server.QueryReceived += this.SOnQueryReceived; }
static void Main(string[] args) { var smlDirecotry = LoadDirectory("sml-directory.xml"); var ip = "10.10.100.179"; var serverOptions = new SmlServerOptions { IPAddress = ip, Directory = smlDirecotry }; var server = new SmlServer(serverOptions); server.Start(); Console.WriteLine("SML Started"); Console.ReadLine(); server.Stop(); }