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

Method Reset

tests/test_connection.cpp:70–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 int64 m_nRecvInterval;
69
70 void Reset()
71 {
72 m_nReliableSendMsgCount = 0;
73 m_nUnreliableSendMsgCount = 0;
74 m_nReliableExpectedRecvMsg = 1;
75 m_nExpectedRecvMsg = 1;
76 m_flReliableMsgDelay = 0.0f;
77 m_flUnreliableMsgDelay = 0.0f;
78 m_hSteamNetConnection = k_HSteamNetConnection_Invalid;
79 m_bIsConnected = false;
80 m_cbSendBuffer = 384 * 1024;
81 memset( &m_realtimeStatus, 0, sizeof(m_realtimeStatus) );
82 m_flSendRate = 0.0f;
83 m_flRecvRate = 0.0f;
84 m_nSendInterval = 0;
85 m_nRecvInterval = 0;
86 }
87
88 void Close()
89 {

Callers 1

Test_pipeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected