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
| 287 | /// Your output function must be threadsafe and fast! Do not make any other |
| 288 | /// Steamworks calls from within the handler. |
| 289 | void 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 |
no outgoing calls
no test coverage detected