MCPcopy Create free account
hub / github.com/cppla/ServerStatus / Send

Method Send

server/src/server.cpp:181–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181void CServer::Send(int ClientID, const char *pLine)
182{
183 if(!m_Ready)
184 return;
185
186 if(ClientID == -1)
187 {
188 for(int i = 0; i < NET_MAX_CLIENTS; i++)
189 {
190 if(m_aClients[i].m_State == CClient::STATE_AUTHED)
191 m_Network.Send(i, pLine);
192 }
193 }
194 else if(ClientID >= 0 && ClientID < NET_MAX_CLIENTS && m_aClients[ClientID].m_State == CClient::STATE_AUTHED)
195 m_Network.Send(ClientID, pLine);
196}
197
198void CServer::Shutdown()
199{

Callers 4

NewClientCallbackMethod · 0.45
UpdateMethod · 0.45
OnNewClientMethod · 0.45
HandleMessageMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected