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

Migrate to tokio #96

Closed

Conversation

neeleshpoli
Copy link
Contributor

@neeleshpoli neeleshpoli commented Sep 15, 2024

  • Migrate to tokio networking
  • Remove mio from dependancies
  • Read packets from the client
  • Write packets to the client
  • Read RCON packets from the client
  • Write RCON packets to the client
  • Make functions that send packets async (see changed files for more details)
  • Make command Apis take async closures

Migrate everything to tokio. Currently mio is used for networking. This PR aims to remove mio and use tokio in its place. This PR also makes a ton of changes to the code base as many functions are converted to async functions. Everything has been migrated to tokio networking and all the need functions are made async but currently packets are not read from the client and rcon client. Reading is not implemented yet because I am not sure on how to properly implement it. I'm open to suggestions and feedback!
I made a new PR as I accidentally closed the orginal one (#75) because I reverted my orginal changes to add new ones.
I probably should have opened an issue first

@neeleshpoli
Copy link
Contributor Author

Unfortunately, I will be busy for a little while, so if anyone else wants to complete the PR, they can go ahead. Feel free to ask any questions and I can answer.

@neeleshpoli neeleshpoli closed this Oct 7, 2024
@neeleshpoli neeleshpoli deleted the migrate-networking-to-tokio branch October 16, 2024 23:16
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.

1 participant