Search code examples
iphonesocketsipadnetwork-programmingnsfilehandle

Does NSFileHandle create the sockets for me?


Does NSFileHandle create the sockets for me? Or must I create them myself and then setup an NSFileHandle to use that socket?


Solution

  • No, it does not. Use initWithFileDescriptor: initializer and supply a BSD socket. These are real basics, it's all written in documentation, please consult the documentation before posting here.