Update to Network Code

Changes to network code. Known issues: NSInputStream isn’t receiving
messages beyond the opening response.