HI all -
I am trying to implement a simple Telnet client, using NSInputStream and NSOutputStream socket objects with the iPhone SDK (3.2). I followed the code examples from developer.apple.com
So, I am able to bring up the TCP connection to my Telnet server. The server immediately sends back some Telnet data. My Telnet object, being a delegate to my NSInputStream, and the stream is registered with the default run-loop.
Unfortunately, my "(void)stream

NSStream *)stream handleEvent

NSStreamEvent)eventCode" callback doesn't detect the 'NSStreamEventHasBytesAvailable' event. I know there's data coming back from the server, because I see it with tcpdump.
I wrote similar code using a CFSocketRef object, but I got the same problem.
I'm also running the code right now thru the simulator. Anyone else seen this problem, and know what I'm doing wrong?
Thanks, Charles.