Skip to content

StunClient::on_buffer_recv expects complete STUN packets #52

@lehmanju

Description

@lehmanju

Probably won't matter much in a real world use case since STUN packets are so small, but it is possible that the supplied buffer doesn't contain all necessary bytes yet and needs to be called repeatedly until a complete packet can be decoded.

I would propose doing the StunPacket decoding process outside of the client or provide the client with an additional state that waits for more input.

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