How can I support reading/writing of data in background using NSFileHandle?
Also, how to open a socket between communicating parties?
This is not specific to NSFileHandle but probably you need to use NSOperationQueue. If so, you could see "LazyTableImages" example from apple's sample code.