InetAddress.equals() Anomoly?
From: Pete Loveall (psl_at_ametx.com.NO_SPAM)
Date: 01/06/05
- Previous message: Alexey Tarasevich: "icons in menus"
- Next in thread: Pete Loveall: "RE: InetAddress.equals() Anomoly?"
- Reply: Pete Loveall: "RE: InetAddress.equals() Anomoly?"
- Reply: Pete Loveall: "Re: InetAddress.equals() Anomoly?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 6 Jan 2005 09:56:08 -0600
Can someone (at Microsoft) tell me how the J# implementation of
InetAddress.equals(Object) works (Java version of equals)? Does it do a
byte wise comparison of the address as stated in the Java API (and as it
does in the Windows JVM) or does it do a simple toString() comparison?
I have a situation where it seems that it may be doing a String comparison
instead of an address comparison. This is bad considering that .NET appears
to do a reverse DNS lookup (also bad) on inbound connections and the reverse
DNS name may not (usually does not) match the DNS name used in the program.
This would be especially problematic with dynamic DNS systems.
I would post some test code, but I can't directly reproduce the problem
because my test program is doing a reverse DNS on the InetAddress returned
by InetAddress.getByName("..."). However, I have a program up and running
which displays the reverse DNS for one outbound connection but not for
another yet both used the same InetAddress.getByName("") method. I don't
understand why that would happen, either.
This is seen on .NET and J# 1.1.4322
Pete Loveall
- Previous message: Alexey Tarasevich: "icons in menus"
- Next in thread: Pete Loveall: "RE: InetAddress.equals() Anomoly?"
- Reply: Pete Loveall: "RE: InetAddress.equals() Anomoly?"
- Reply: Pete Loveall: "Re: InetAddress.equals() Anomoly?"
- Messages sorted by: [ date ] [ thread ]