Skip to content

enet::Address byte order issue when read from enet::Peer #14

@949f45ac

Description

@949f45ac

Hey there! Thank for this cool library.

I’ve come across a small issue while using it. It appears that if an enet::Address is read (back) from the ENet library, the byte order ends up wrong, at least on my ordinary LE system. Meanwhile, if I manually construct an enet::Address via ::new, it has the 'right' byte order.

Meaning, if I call Address::new(Ipv4Addr::LOCALHOST, 5000).ip().to_string() then I get 127.0.0.1;
but for a given peer.address().ip().to_string() I would get 1.0.0.127.

Would be great if you could fix this!
Cheers

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