I'm writing a class that interacts with a server over the TCP/IP protocol. When the client connects to the server, it starts a new thread that reads input from the server. Any good ideas on how to parse the input from the server? I was looking at the NSScanner class, but it would be a very inefficient way to parse input. It imposes a lot of expectations on what to expect from an NSString, which is burdensome when reading server input.
Samad