On 7.8.2006 15:03 Carlos Guzmán Álvarez wrote:
> 1 As it's now it will use Dns.GetHostEntry first and if this fails 
> IPAddress.Parse

I've tested now the speed of GetHostEntry and with IP there's no delay.

I also think (and I'm not sure) whether is there neccessary the 
IPAddress.Parse? If the first method will not succeed, then this method will 
fail too, isn't it? There's a 4 possible exceptions:
ArgumentNullException - is out, Parse will not succeed too
ArgumentOutOfRangeException - is out, Parse will not succeed too
SocketException - I think that this Ex cannot occur with IP, 'cause no 
resolving is made
ArgumentException - is out, Parse will not succeed too


-- 
Jiri {x2} Cincura
http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to