On 7.8.2006 22:29 [EMAIL PROTECTED] wrote: > What i do not understand: If i give GetHostEntry() an IP-Address, what the > heck is this function doing for up to 30 seconds ? Does it first think the > ip-address is a hostname ? > Thats why i recommended to change the order...
I've tested this on 3 machines here and if I provide IP as input the return is fast (no delay). > IPAddress.Parse() just checks if the string looks like an IP-Address and if > it does it converts it to an "IPAddress", if it does not it throws an > exception. > So if IPAddress.Parse() sees an IP-Address i do not have to deal with the > damn (in my office very slow) windows-hostname resolving ;D > If IPAddress.Parse() fails then GetHostEntry() can try its luck. > In my tests IPAddress.Parse() parses the string very fast and the function > call is not noticeable if you let it parse a hostname. It seems that there's some bad configuration in your network. So the question is, whether we should support these hacks for some type of custom problems? If this will be my program, I'll recommend you to configure your network in right. But in this "public" piece of code I think editing the code to the new look seems to be not so bad. Any (anti) ideas? ;) -- Jiri {x2} Cincura http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider