| 1845 | |
| 1846 | |
| 1847 | void 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 | |
| 1865 | void CClientTCPSocket::OnError(int nErrorCode) |
nothing calls this directly
no test coverage detected