MCPcopy Create free account
hub / github.com/Detanup01/gbe_fork / SetDebugOutputFunction

Method SetDebugOutputFunction

dll/steam_networking_utils.cpp:289–296  ·  view source on GitHub ↗

Set a function to receive network-related information that is useful for debugging. This can be very useful during development, but it can also be useful for troubleshooting problems with tech savvy end users. If you have a console or other log that customers can examine, these log messages can often be helpful to troubleshoot network issues. (Especially any warning/error messages.) The detail l

Source from the content-addressed store, hash-verified

287/// Your output function must be threadsafe and fast! Do not make any other
288/// Steamworks calls from within the handler.
289void Steam_Networking_Utils::SetDebugOutputFunction( ESteamNetworkingSocketsDebugOutputType eDetailLevel, FSteamNetworkingSocketsDebugOutput pfnFunc )
290{
291 PRINT_DEBUG("%i", eDetailLevel);
292 std::lock_guard<std::recursive_mutex> lock(global_mutex);
293 if (eDetailLevel != k_ESteamNetworkingSocketsDebugOutputType_None) {
294 debug_function = pfnFunc;
295 }
296}
297
298//
299// Fake IP

Calls

no outgoing calls

Tested by

no test coverage detected