MCPcopy Create free account
hub / github.com/cuberite/cuberite / HandleKeepAlive

Method HandleKeepAlive

src/ClientHandle.cpp:1430–1437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1428
1429
1430void cClientHandle::HandleKeepAlive(int a_KeepAliveID)
1431{
1432 if (a_KeepAliveID == m_PingID)
1433 {
1434 cTimer t1;
1435 m_Ping = (short)((t1.GetNowTime() - m_PingStartTime) / 2);
1436 }
1437}
1438
1439
1440

Callers 2

ParseKeepAliveMethod · 0.80
HandlePacketKeepAliveMethod · 0.80

Calls 1

GetNowTimeMethod · 0.80

Tested by

no test coverage detected