We're receiving probably 10-100 kilobytes per second over a network; they come into C# as byte[] arrays. It seems like some messages aren't getting deserialized properly, perhaps because they're getting chunked together? I'm guessing each byte[] array no longer corresponds to a single message? I'm not sure... Should I be using a memorystream? Or somehow a fixed offset?
As a test, I serialize each object, and immediately deserialize and print it locally; so I know the actual deserialization is accurate. But on the receiving (remote) end, after going through the network transport, data is being received by not getting deserialized.