I want to create a TCP connection between iPhone and PC.
So I'm creating two CFStreamRef-s and i want to register my object selector to be called when new bytes are available for reading.
As I understood from the link above I can register a function for a read stream like this
CFReadStreamSetClient(myReadStream, registeredEvents, myCallBack, &myContext)
Can I register a selector of my object like this ?
CFReadStreamRef is just a NSInputStream.
Everything you have to do more is implement
NSStreamDelegate