Comments (1)
I needed a quick and dirty solution to this. I forked, exposed some internal structs and reutilized a channel that wasn't doing anything. It's not pretty but am sharing if others stumble on this issue.
// connection health
if let Some(receiver) = connection.event_receiver.as_ref() {
while match receiver.try_recv() {
Ok(ev) => {
match ev.state() {
Ok(state) => {
println!("state: {:?}", state);
match state {
steamworks::networking_types::NetworkingConnectionState::None => {},
steamworks::networking_types::NetworkingConnectionState::Connecting => {},
steamworks::networking_types::NetworkingConnectionState::FindingRoute => {},
steamworks::networking_types::NetworkingConnectionState::Connected => {},
steamworks::networking_types::NetworkingConnectionState::ClosedByPeer => {},
steamworks::networking_types::NetworkingConnectionState::ProblemDetectedLocally => {
...
from steamworks-rs.
Related Issues (20)
- how to use ugc query ? HOT 1
- Cannot launch app through steam on windows -- Fossilize Failed to parse ApplicationInfo HOT 1
- Many ISteamUtils functions are missing HOT 2
- Release a new version HOT 3
- cargo test not working, possible race condition
- [Proposal] Change callback API to work without keeping in a variable HOT 3
- Non-'static scoped callback handlers
- Feature Request: Implement more Activate Overlay functions
- Is it possible to use the API if steam is installed as a flatpak? HOT 1
- A way to identify if NetConnection is still valid from NetworkingSockets
- Wrapper for SendLobbyChatMsg on Matchmaking struct HOT 1
- Wrappers for lobby list request filtering HOT 1
- The ticket obtained by `authentication_session_ticket_for_webapi` cannot be validated by webapi.
- Missing a lot of Steam Input bindings HOT 3
- Maintenance status HOT 6
- Access the `networking_sockets` apis from a `Server` struct
- Access the local ip address for a NetConnection
- SingleClient may be redundant
- Bundled Steamworks library via Cargo feature
- Lack of documentation regarding shared libraries HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from steamworks-rs.