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

Method OnConnect

src/ClientTCPSocket.cpp:1824–1837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1822}
1823
1824void 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
1840void CClientTCPSocket::OnSend(int nErrorCode)

Callers

nothing calls this directly

Calls 1

SendHelloPacketMethod · 0.80

Tested by

no test coverage detected