Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
Tom #1
Member since Nov 2008 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Suggestion - check IPConfigurationInformation.DnsServers for empty values
Hello
Perhaps it would be a good idea to check IPConfigurationInformation.DnsServers for an empty string in dnsServers[0].

For example, if I try to connect with disconnected NIC, ResolveSrv will always throw an Exception (even after I reconnect), since dnsServers[0] is an empty string. It can be handled in some error event handler, but I think that it would be nicer if XmppClientConnection takes care of this case.

Cheers, Tom
Avatar
Alex #2
Member since Feb 2003 · 4307 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
good point, I'll add this to my TODO list.

Alex
Avatar
Alex #3
Member since Feb 2003 · 4307 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
It shouldn't raise an exception but Fire an OnError event.
I check for empty values now and FireOnError which a correct error message.
This code will be in SVN with the next commit.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS