Hi!

On 2010/11/21, at 00:27, Aurélien Minet wrote:

> Also I add comments before each bloc of initLocalHosts which add address to 
> the NSMutableArray. But  I don't understand the aim of the last one which 
> does IP->hostname->IPs  :
> 
> int i = localNSMutableArray.count();
>        for (int j = 0; j < i; ++j) {
>            InetAddress localInetAddress2 = 
> (InetAddress)localNSMutableArray.objectAtIndex(j);
>            try {
>                InetAddress[] arrayOfInetAddress3 = 
> InetAddress.getAllByName(localInetAddress2.getHostName());
>                _addInetAddressArray(arrayOfInetAddress3, localNSMutableArray);
>            } catch (Exception localException4) {
>                NSLog.err.appendln("<WOHostUtilities>: Couldn't get 
> InetAddresses for '" + localInetAddress2.getHostName() + "': " + 
> localException4);
>            }
>        }


  That's part of the original class. I suppose it tries to grab a name 
(server.domain.com) and find all the IP addresses that it resolves to, adding 
them to the list.

  Regards,

Miguel Arroz

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to