Hacker News new | ask | show | jobs
by mattgreenrocks 4591 days ago
All networking code should work even if it receives 1 byte at a time. Use a buffer, and have some sort of abstraction responsible for packetizing the input. The output of that module is a fully formed frame ready for interpretation.