Skip to content

Unable to connect to C# LiteNetLib server。 #13

@careyleecn

Description

@careyleecn

When I use SomeConnectKey to connect, I am unable to connect to the server created by C # LiteNetLib。When comparing the sent data, I found that when using net_dataw_writer to write the key, the length was reduced by 1.
void write(const std::string& str) { write((uint16_t) (str.size()+1)); write((uint8_t*) str.data(), 0, str.size()); }

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