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

Method OnConnectionAccepted

src/RCONServer.cpp:140–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138
139
140void cRCONServer::OnConnectionAccepted(cSocket & a_Socket)
141{
142 if (!a_Socket.IsValid())
143 {
144 return;
145 }
146
147 LOG("RCON Client \"%s\" connected!", a_Socket.GetIPString().c_str());
148
149 // Create a new cConnection object, it will be deleted when the connection is closed
150 m_SocketThreads.AddClient(a_Socket, new cConnection(*this, a_Socket));
151}
152
153
154

Callers

nothing calls this directly

Calls 4

LOGFunction · 0.85
c_strMethod · 0.80
IsValidMethod · 0.45
AddClientMethod · 0.45

Tested by

no test coverage detected