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

Method RemoveClient

src/OSSupport/SocketThreads.cpp:75–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74
75void cSocketThreads::RemoveClient(const cCallback * a_Client)
76{
77 // Remove the associated socket and the client from processing
78
79 cCSLock Lock(m_CS);
80 for (cSocketThreadList::iterator itr = m_Threads.begin(); itr != m_Threads.end(); ++itr)
81 {
82 if ((*itr)->RemoveClient(a_Client))
83 {
84 return;
85 }
86 } // for itr - m_Threads[]
87
88 ASSERT(!"Removing an unknown client");
89}
90
91
92

Callers 1

CloseConnectionMethod · 0.45

Calls 9

beginMethod · 0.80
endMethod · 0.80
emptyMethod · 0.80
ShutdownReadWriteMethod · 0.80
IsValidMethod · 0.45
CloseSocketMethod · 0.45
GetOutgoingDataMethod · 0.45
SendMethod · 0.45

Tested by

no test coverage detected