• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSHost and local IP Addresses (reverse lookup problems)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: iso-8859-1 over UTF8 (was: Re: cString deprecated!)
  • Next by Date: The macs serial number (clearer)
  • Previous by thread: Re: [ANN] More Internet Preference Pane
  • Next by thread: The macs serial number (clearer)
  • Index(es):
    • Date
    • Thread