Skip to content

Changing a message from string to a binary #1

@maradanovic

Description

@maradanovic

Hi,

Thanks for this amazing repo!

I used it to set up a server on a Linux machine. The client is a Unity app running on a HoloLens (UWP), a modification of this script c# (https://foxypanda.me/tcp-client-in-a-uwp-unity-app-on-hololens/).

I'm sending a large polygonal mesh from HL to the server. Because the server is set up to receive a string, I serialize two arrays, of Vector3 vertices and integer triangles/faces, to strings on the client side before sending them across. But, the serialization is very slow, and I was advised to send a compact binary format (https://forum.unity.com/threads/mesh-to-string-conversion-taking-too-long-hope-to-get-some-optimization-suggestions.1172413/#post-7509872).

I was hoping you could help me with this - can the server be modified to accept a binary format, or arrays of floats or integers?

Thanks again for sharing this great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions