mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 02:03:47 +01:00
Shows a warning on Screen when detecting AdhocMatching data coming from an incorrect port, progressing any further may ended with connection issue.
Players will need to wait until the port detected correctly before progressing any further (may takes a few more seconds)
This commit is contained in:
1 parent
d23e1c0949
commit
eef3110dcf
1 file changed
+5
@@ -7072,6 +7072,7 @@ int matchingEventThread(int matchingId)
|
||||
int matchingInputThread(int matchingId) // TODO: The MatchingInput thread is using sceNetAdhocPdpRecv & sceNetAdhocPdpSend functions so it might be better to run this on PSP thread instead of real thread
|
||||
{
|
||||
setCurrentThreadName("MatchingInput");
|
||||
auto n = GetI18NCategory("Networking");
|
||||
// Multithreading Lock
|
||||
peerlock.lock();
|
||||
// Cast Context
|
||||
@@ -7247,6 +7248,10 @@ int matchingInputThread(int matchingId) // TODO: The MatchingInput thread is usi
|
||||
|
||||
// Ignore Incoming Trash Data
|
||||
}
|
||||
else if (recvresult == 0 && rxbuflen > 0) {
|
||||
WARN_LOG(SCENET, "InputLoop[%d]: Unknown Port[%s:%u] (Recved=%i, Length=%i)", matchingId, mac2str(&sendermac).c_str(), senderport, recvresult, rxbuflen);
|
||||
host->NotifyUserMessage(std::string(n->T("Data from incorrect Port")) + std::string(" [") + mac2str(&sendermac) + std::string("]:") + std::to_string(senderport) + std::string(" -> ") + std::to_string(context->port), 1.0, 0x0080ff);
|
||||
}
|
||||
|
||||
// Handle Peer Timeouts
|
||||
handleTimeout(context);
|
||||
|
||||
Reference in new issue
Block a user