MCPcopy Create free account
hub / github.com/ddnet/ddnet / State

Method State

src/engine/shared/network_client.cpp:182–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182int CNetClient::State()
183{
184 if(m_Connection.State() == CNetConnection::EState::ONLINE)
185 return NETSTATE_ONLINE;
186 if(m_Connection.State() == CNetConnection::EState::OFFLINE)
187 return NETSTATE_OFFLINE;
188 return NETSTATE_CONNECTING;
189}
190
191int CNetClient::Flush()
192{

Callers 2

UpdateMethod · 0.45
RecvMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected