MCPcopy Create free account
hub / github.com/amule-project/amule / OnReceive

Method OnReceive

src/ClientTCPSocket.cpp:1847–1862  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1845
1846
1847void CClientTCPSocket::OnReceive(int nErrorCode)
1848{
1849 ResetTimeOutTimer();
1850 // We might have updated ipfilter
1851 wxASSERT(m_remoteip);
1852
1853 if (theApp->ipfilter->IsFiltered(m_remoteip)) {
1854 if (m_client) {
1855 m_client->Safe_Delete();
1856 }
1857 Safe_Delete();
1858 AddDebugLogLineN( logIPFilter, "A connected client was dropped by IPFilter on new packet received");
1859 } else {
1860 CEMSocket::OnReceive(nErrorCode);
1861 }
1862}
1863
1864
1865void CClientTCPSocket::OnError(int nErrorCode)

Callers

nothing calls this directly

Calls 2

IsFilteredMethod · 0.45
Safe_DeleteMethod · 0.45

Tested by

no test coverage detected