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

Find out what maximum for max_peers is #1

Open
futile opened this issue Nov 1, 2018 · 1 comment
Open

Find out what maximum for max_peers is #1

futile opened this issue Nov 1, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@futile
Copy link
Owner

futile commented Nov 1, 2018

When calling Enet::create_host, the max_peers argument sets the maximum peer count. However, the type of this argument is usize, but probably less than usize::MAX peers are supported. Finding out the maximum count most likely needs to be done by looking into the ENet docs + source. It can then be turned into a specific enum like ChannelLimit etc.

@futile futile added the enhancement New feature or request label Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants