| 1822 | } |
| 1823 | |
| 1824 | void CClientTCPSocket::OnConnect(int nErrorCode) |
| 1825 | { |
| 1826 | if (nErrorCode) { |
| 1827 | OnError(nErrorCode); |
| 1828 | } else if (!m_client) { |
| 1829 | // and now? Disconnect? not? |
| 1830 | AddDebugLogLineN( logClient, "Couldn't send hello packet (Client deleted!)" ); |
| 1831 | } else if (!m_client->SendHelloPacket()) { |
| 1832 | // and now? Disconnect? not? |
| 1833 | AddDebugLogLineN( logClient, "Couldn't send hello packet (Client deleted by SendHelloPacket!)" ); |
| 1834 | } else { |
| 1835 | ResetTimeOutTimer(); |
| 1836 | } |
| 1837 | } |
| 1838 | |
| 1839 | |
| 1840 | void CClientTCPSocket::OnSend(int nErrorCode) |
nothing calls this directly
no test coverage detected