MCPcopy Create free account
hub / github.com/ValveSoftware/GameNetworkingSockets / Close

Method Close

tests/test_connection.cpp:88–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 }
87
88 void Close()
89 {
90 if ( m_hSteamNetConnection != k_HSteamNetConnection_Invalid )
91 {
92 SteamNetworkingSockets()->CloseConnection( m_hSteamNetConnection, 0, nullptr, false );
93 m_hSteamNetConnection = k_HSteamNetConnection_Invalid;
94 }
95 Reset();
96 }
97
98 inline void UpdateInterval( float flElapsed )
99 {

Callers 1

CloseConnectionsFunction · 0.45

Calls 2

SteamNetworkingSocketsFunction · 0.85
CloseConnectionMethod · 0.45

Tested by

no test coverage detected