How do I use TCP in bevy? #11665
Unanswered
thebluetropics
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Hi! I recommend checking out the Bevy Assets category for networking, you may find a library that fits your needs instead of having to make your own. (Make sure to find a library that supports the latest release of Bevy, 0.12.1. There are a few outdated ones!) I hope that helps :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Polling on each update is fine, I've done that before. Having TCP connection in a separate AsyncComputeTaskPool and communicating through channels is another idea. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am new to Bevy and Rust. I have made several working web apps (using
actix-web
) and a dedicated game server (using non-blocking sychronous TCP from the standard library)However, at this point, I have no clue how to make a simple TCP connection (client-server) in a bevy program. The only thing in my head is polling, on each
Update
.If possible, I need an example, I haven't found it anywhere.
Beta Was this translation helpful? Give feedback.
All reactions