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

Method GetSecureIdentState

src/BaseClient.cpp:2441–2460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2439}
2440
2441uint8 CUpDownClient::GetSecureIdentState()
2442{
2443 if (m_SecureIdentState != IS_UNAVAILABLE) {
2444 if (!SecIdentSupRec) {
2445 // This can be caused by a 0.30x based client which sends the old
2446 // style Hello packet, and the mule info packet, but between them they
2447 // send a secure ident state packet (after a hello but before we have
2448 // the SUI capabilities). This is a misbehaving client, and somehow I
2449 // feel like it should be dropped. But then again, it won't harm to use
2450 // this SUI state if they are reporting no SUI (won't be used) and if
2451 // they report using SUI on the mule info packet, it's ok to use it.
2452
2453 AddDebugLogLineN(logClient, "A client sent secure ident state before telling us the SUI capabilities");
2454 AddDebugLogLineN(logClient, "Client info: " + GetClientFullInfo());
2455 AddDebugLogLineN(logClient, "This client won't be disconnected, but it should be. :P");
2456 }
2457 }
2458
2459 return m_SecureIdentState;
2460}
2461
2462
2463bool CUpDownClient::SendChatMessage(const wxString& message)

Callers 1

ProcessExtPacketMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected