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

Method Send

src/engine/shared/econ.cpp:157–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void CEcon::Send(int ClientId, const char *pLine)
158{
159 if(!m_Ready)
160 return;
161
162 if(ClientId == -1)
163 {
164 for(int i = 0; i < NET_MAX_CONSOLE_CLIENTS; i++)
165 {
166 if(m_aClients[i].m_State == CClient::STATE_AUTHED)
167 m_NetConsole.Send(i, pLine);
168 }
169 }
170 else if(ClientId >= 0 && ClientId < NET_MAX_CONSOLE_CLIENTS && m_aClients[ClientId].m_State == CClient::STATE_AUTHED)
171 m_NetConsole.Send(ClientId, pLine);
172}
173
174void CEcon::Shutdown()
175{

Callers 6

mainFunction · 0.45
SendMsgMethod · 0.45
RefreshMethod · 0.45
RequestImplMethod · 0.45
NewClientCallbackMethod · 0.45
UpdateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected