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

Networking Setup / Lobby Discovery #2

Merged
merged 48 commits into from
Apr 17, 2024
Merged

Networking Setup / Lobby Discovery #2

merged 48 commits into from
Apr 17, 2024

Conversation

Tyler-Lentz
Copy link
Contributor

@Tyler-Lentz Tyler-Lentz commented Apr 9, 2024

Closes #17

This PR

  • Introduces the networking setup for the repo
    • The crux of this are the Client, Server, Session, Event, and Packet classes
  • Introduces a json config file to configure stuff

The main interface exposed by the networking code is that of the Session class. The session class lets you send events to the server/client the session is connected to, and it also lets you read events that come in from the other direction.

I also had to make a bunch of random smaller changes to GameState to make everything interop with the networking code. Hopefully those are all okay.

@EddieJ03 EddieJ03 self-requested a review April 10, 2024 05:32
@Tyler-Lentz Tyler-Lentz changed the title Networking Setup & Echo Server Networking Setup / Lobby Discovery Apr 11, 2024
I figured out why everything is broken. It is because i was not considering
the lifetimes of the buffers that I was passing to write/read calls. I need
to go back through and refactor it taking this into account, making sure no
vars go out of scope. Another Rust W.
…ssly broken. Last commit before I drop the approach
@EddieJ03 EddieJ03 linked an issue Apr 13, 2024 that may be closed by this pull request
10 tasks
@Tyler-Lentz Tyler-Lentz requested review from gilkeidar, jhparkt, atar13 and EddieJ03 and removed request for EddieJ03 April 17, 2024 01:59
@Tyler-Lentz Tyler-Lentz assigned dmin12 and unassigned dmin12 Apr 17, 2024
@Tyler-Lentz Tyler-Lentz requested a review from dmin12 April 17, 2024 02:00
Copy link
Contributor

@EddieJ03 EddieJ03 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we creating the greatest networking setup with this one ❗❗

@Tyler-Lentz Tyler-Lentz merged commit 1cb6f69 into dev Apr 17, 2024
5 of 11 checks passed
@Tyler-Lentz
Copy link
Contributor Author

we creating the greatest networking setup with this one ❗❗

HUGE!

@Tyler-Lentz Tyler-Lentz deleted the networking-setup branch April 17, 2024 05:23
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.

Implement Lobby Discovery / Client <-> Server TCP Connection
3 participants