public DnsServerSettings AsDnsServerSettings() { DnsServerSettings settings = new DnsServerSettings(); settings.Address = this.Address; settings.Port = this.Port; settings.MaxQuestionCount = this.MaxQuestionCount; settings.MaxRequestSize = this.MaxRequestSize; settings.DefaultTTL = this.DefaultTTL; settings.ResolutionMode = this.ResolutionMode; settings.TcpServerSettings = this.TcpServerSettings.AsSocketServerSettings(); settings.UdpServerSettings = this.UdpServerSettings.AsSocketServerSettings(); return(settings); }
public DnsResponder(IDnsStore store, DnsServerSettings settings) { if (store == null) { throw new ArgumentNullException("store"); } if (settings == null) { throw new ArgumentNullException("settings"); } m_store = store; m_settings = settings; }
public DnsServerSettings AsDnsServerSettings() { DnsServerSettings settings = new DnsServerSettings(); settings.Address = this.Address; settings.Port = this.Port; settings.MaxQuestionCount = this.MaxQuestionCount; settings.MaxRequestSize = this.MaxRequestSize; settings.DefaultTTL = this.DefaultTTL; settings.ResolutionMode = this.ResolutionMode; settings.TcpServerSettings = this.TcpServerSettings.AsSocketServerSettings(); settings.UdpServerSettings = this.UdpServerSettings.AsSocketServerSettings(); return settings; }
public DnsServer(IDnsStore store, DnsServerSettings settings) { if (store == null || settings == null) { throw new ArgumentNullException(); } m_settings = settings; m_store = store; m_tcpResponder = new DnsResponderTCP(this.Store, this.Settings); m_udpResponder = new DnsResponderUDP(this.Store, this.Settings); m_tcpResponder.Server.Error += InvokeError; m_udpResponder.Server.Error += InvokeError; }
public DnsResponderUDP(IDnsStore store, DnsServerSettings settings) : base(store, settings) { m_server = new DnsUdpServer(this.Settings.Endpoint, this.Settings.UdpServerSettings, this); }
public DnsResponderTCP(IDnsStore store, DnsServerSettings settings) : base(store, settings) { m_tcpServer = new TcpServer <DnsTcpContext>(this.Settings.Endpoint, this.Settings.TcpServerSettings, this); }