Add a couple of log lines about sockets for diagnostics. Refs #362

This commit is contained in:
baldurk
2016-09-16 21:30:00 +02:00
parent fa6079d4cd
commit c0b3f39f06
3 changed files with 8 additions and 0 deletions
+6
View File
@@ -276,6 +276,12 @@ void RenderDoc::Initialise()
m_TargetControlThreadShutdown = false;
m_RemoteThread = Threading::CreateThread(TargetControlServerThread, (void *)sock);
RDCLOG("Listening for target control on %u", port);
}
else
{
RDCWARN("Couldn't open socket for target control");
}
}
+1
View File
@@ -322,6 +322,7 @@ Socket *CreateClientSocket(const char *host, uint16_t port, int timeoutMS)
}
else
{
RDCWARN("Error connecting to %s:%d - %d", host, port, err);
close(s);
continue;
}
+1
View File
@@ -337,6 +337,7 @@ Socket *CreateClientSocket(const char *host, uint16_t port, int timeoutMS)
}
else
{
RDCWARN("Error connecting to %s:%d - %d", host, port, err);
closesocket(s);
continue;
}