Added tutorial and fixed issues on debugservice
This commit is contained in:
@@ -158,17 +158,20 @@ bool DebugService::Initialise(StructuredDataI & data) {
|
||||
REPORT_ERROR(ErrorManagement::FatalError, "DebugService: Failed to Listen on port %u", controlPort);
|
||||
return false;
|
||||
}
|
||||
printf("[DebugService] TCP Server listening on port %u\n", controlPort);
|
||||
|
||||
if (!udpSocket.Open()) {
|
||||
REPORT_ERROR(ErrorManagement::FatalError, "DebugService: Failed to open UDP Socket");
|
||||
return false;
|
||||
}
|
||||
printf("[DebugService] UDP Streamer socket opened\n");
|
||||
|
||||
if (!logServer.Open()) {
|
||||
REPORT_ERROR(ErrorManagement::FatalError, "DebugService: Failed to open Log Server Socket");
|
||||
return false;
|
||||
}
|
||||
(void)logServer.Listen(logPort);
|
||||
printf("[DebugService] Log Server listening on port %u\n", logPort);
|
||||
|
||||
if (threadService.Start() != ErrorManagement::NoError) {
|
||||
REPORT_ERROR(ErrorManagement::FatalError, "DebugService: Failed to start Server thread");
|
||||
@@ -182,6 +185,7 @@ bool DebugService::Initialise(StructuredDataI & data) {
|
||||
REPORT_ERROR(ErrorManagement::FatalError, "DebugService: Failed to start LogStreamer thread");
|
||||
return false;
|
||||
}
|
||||
printf("[DebugService] All worker threads started.\n");
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user