NSHost and local IP Addresses (reverse lookup problems)
NSHost and local IP Addresses (reverse lookup problems)
- Subject: NSHost and local IP Addresses (reverse lookup problems)
- From: Matthew White <email@hidden>
- Date: Tue, 03 Sep 2002 16:11:46 +0100
Hi,
I am having a problem creating a socket connection to a local (10.0.x.x)
machine.
I am using the EDCommon framework, but my problem lies in NSHost (actually
it lies in my understanding I expect).
I need to feed an NSHost into my EDStreamObject thus.
remoteClipboard = [EDStream
streamConnectedToHost:remoteHost
port:60
sendTimeout:5
receiveTimeout:5];
Where remoteHost is set with
remoteHost=[NSHost hostWithAddress:@"10.0.1.5"];
(actually the string is read from a preference but you get the gist)
A bit of research tells me that this wont work because a reverse lookup on
the address does not find a host and the method returns Nil.
So, what can I do to get an NSHost object pertaining to an arbitrary IP
Address? If I can't do that any other suggestions.
Thanks guys,
Matt
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.