tokaido/tokaidoapp — pull request #37 by androbtech (2013-12-22 16:52:21+00:00)
Title: Ensure reads from Muxr are complete.

It seemed odd that sometimes the console would log "TOKAIDO ACTIVE" and sometimes not. There is a comparison from the data read through the socket with the string "tokaido active\n".

But since TCP is a stream you might get the whole string from different reads. This might affect future commands from Muxr. The writing portion is another story.

This ensures everything is read using newline as a delimiter. GCDAsyncSocket provides the method for it.