Skip to content

Do I need to use a stream when receiving many serialized messages over a network? #60

@darshanshankar

Description

@darshanshankar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions