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

Method Recv

server/src/network.cpp:124–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124int CNetwork::Recv(char *pLine, int MaxLength, int *pClientID)
125{
126 for(int i = 0; i < NET_MAX_CLIENTS; i++)
127 {
128 if(m_aSlots[i].m_Connection.State() == NET_CONNSTATE_ONLINE && m_aSlots[i].m_Connection.Recv(pLine, MaxLength))
129 {
130 if(pClientID)
131 *pClientID = i;
132 return 1;
133 }
134 }
135 return 0;
136}
137
138int CNetwork::Send(int ClientID, const char *pLine)
139{

Callers 1

UpdateMethod · 0.45

Calls 1

StateMethod · 0.80

Tested by

no test coverage detected