mirror of
https://github.com/ValveSoftware/GameNetworkingSockets.git
synced 2026-05-29 16:20:34 +00:00
Add CMessagesEndPointSession::m_bAppScheduledTimeout
It's not useful in this code but it's useful for FakeUDPPort sessions. P4:6894651
This commit is contained in:
@@ -167,6 +167,7 @@ CMessagesEndPointSession::CMessagesEndPointSession(
|
||||
, m_messageEndPointOwner( endPoint )
|
||||
{
|
||||
m_pConnection = nullptr;
|
||||
m_bAppScheduledTimeout = false;
|
||||
m_bConnectionWasEverConnected = false;
|
||||
|
||||
MarkUsed( SteamNetworkingSockets_GetLocalTimestamp() );
|
||||
@@ -183,6 +184,7 @@ CMessagesEndPointSession::~CMessagesEndPointSession()
|
||||
void CMessagesEndPointSession::MarkUsed( SteamNetworkingMicroseconds usecNow )
|
||||
{
|
||||
m_usecIdleTimeout = usecNow + k_usecSteamNetworkingP2PSessionIdleTimeout;
|
||||
m_bAppScheduledTimeout = false;
|
||||
ScheduleThink();
|
||||
}
|
||||
|
||||
|
||||
@@ -86,6 +86,9 @@ public:
|
||||
/// and we should clean it up.
|
||||
SteamNetworkingMicroseconds m_usecIdleTimeout;
|
||||
|
||||
/// Try if the app scheduled cleanup
|
||||
bool m_bAppScheduledTimeout;
|
||||
|
||||
/// True if the current connection ever managed to go fully connected
|
||||
bool m_bConnectionWasEverConnected;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user