• 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
NSFileHandle and Sockets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSFileHandle and Sockets


  • Subject: NSFileHandle and Sockets
  • From: RR <email@hidden>
  • Date: Sun, 3 Feb 2002 19:56:06 -0500

The docs for NSFileHandle initWithFileDescriptor: state that "You can create an NSFileHandle for a socket by using the result of a socket call as the argument to initWithFileDescriptor."

I'm trying to use NSFileHandle to communicate with a process on a physically separate machine, so I had to use socket() of course, but I also had to use connect() before passing on the socket to initWithFileDescriptor. Everything seems to work all right, but the documentation never explicitly mentions calling connect(). Just want to make sure I'm not setting myself up for trouble at some later time!

Thanks,
RR


  • Prev by Date: Re: Simple TableView App (problem)
  • Next by Date: OmniNetworking Prebinding (sorry!)
  • Previous by thread: Re: Cocoa idiom for time consuming tasks
  • Next by thread: OmniNetworking Prebinding (sorry!)
  • Index(es):
    • Date
    • Thread