From e9f7d2f0a6faaab67430e435497de38e1c4c574e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20S=C3=B8holm?= Date: Tue, 21 Nov 2023 17:13:41 +0100 Subject: [PATCH] Add run_callbacks to networking_sockets --- src/networking_sockets.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/networking_sockets.rs b/src/networking_sockets.rs index 25beba5..87dd4ff 100644 --- a/src/networking_sockets.rs +++ b/src/networking_sockets.rs @@ -930,6 +930,10 @@ impl NetConnection { debug_assert!(was_successful); } + pub fn run_callbacks(&self) { + unsafe { sys::SteamAPI_ISteamNetworkingSockets_RunCallbacks(self.sockets) } + } + /// Set the connection state to be handled externally. The struct will no longer close the connection on drop. pub(crate) fn handle_connection(&mut self) { self.is_handled = true