-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Support steam p2p sockets #346
Conversation
ba21cc9
to
b4b2c48
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #346 +/- ##
==========================================
+ Coverage 67.43% 67.44% +0.01%
==========================================
Files 159 159
Lines 10436 10440 +4
==========================================
+ Hits 7037 7041 +4
Misses 3399 3399 ☔ View full report in Codecov by Sentry. |
|
||
// NOTE: it looks like there's SingleClient can actually be called on multiple threads | ||
// - https://partner.steamgames.com/doc/api/steam_api#SteamAPI_RunCallbacks | ||
pub(crate) struct SingleClientThreadSafe(steamworks::SingleClient); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So do you think it would be possible to use this as a wrapper to the user's provided SteamworksClient
to avoid the Arc<RwLock>
?
Looks great to me, thanks! |
Adds support for Steam P2P sockets. This has been tested by @zwazel and is confirmed to at least work partially, though with some kinks (#243).
I didn't add tests for this since that would require Steam to be installed to run tests.