Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PeerID instead of ConnectID, because ConnectID can be non-unique. #56

Merged
merged 3 commits into from
Mar 22, 2019
Merged

Conversation

Vincenz099
Copy link
Contributor

@Vincenz099 Vincenz099 commented Mar 22, 2019

Use PeerID instead of ConnectID for the peer>ID, because ConnectID can be non-unique.
This will return the Index of the peer in the enet Peers array. values will be 0....4095
This index gets recycled. if you have clients connected and one gets dropped/disconnected and a new one connects the first unused index is re-used.

Added enet_peer_get_peer_id (returns uint of index in peer array.
Added PeerID fetching.
Just replace.
@nxrighthere nxrighthere merged commit e37aa56 into nxrighthere:master Mar 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants