Aufgrund einer Wartung wird GitLab am 17.08. zwischen 8:30 und 9:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 17.08. between 8:30 and 9:00 am.

Commit b28e2b15 authored by Anne Heimes's avatar Anne Heimes

bugfix server message log

parent ecbe89dd
......@@ -250,6 +250,9 @@ std::string CITANetAudioStreamingClient::GetClientLoggerBaseName() const
void CITANetAudioStreamingClient::SetClientLoggerBaseName( const std::string& sBaseName )
{
if (GetIsConnected())
ITA_EXCEPT1(MODAL_EXCEPTION, "Streaming and logging already started.");
m_sClientLoggerBaseName = sBaseName;
m_pClientLogger->setOutputFile( m_sClientLoggerBaseName + "_Client.log" );
......
......@@ -105,7 +105,7 @@ bool CITANetAudioStreamingServer::Start( const std::string& sAddress, const int
m_pMessage = new CITANetAudioMessage( m_pConnection->GetByteorderSwapFlag() );
m_pMessage->SetMessageLoggerBaseName( GetServerLogBaseName() + "_Messages" );
m_pMessage->SetDebuggingEnabled(GetIsDebuggingEnabled());
m_pMessage->ResetMessage();
m_pMessage->SetConnection( m_pConnection );
while( !m_pMessage->ReadMessage( 0 ) ); //blocking
......@@ -299,6 +299,7 @@ int CITANetAudioStreamingServer::GetNetStreamNumberOfChannels() const
void CITANetAudioStreamingServer::SetDebuggingEnabled( bool bEnabled )
{
m_bDebuggingEnabled = bEnabled;
}
......@@ -327,6 +328,7 @@ void CITANetAudioStreamingServer::SetServerLogBaseName( const std::string& sBase
assert( !m_sServerLogBaseName.empty() );
m_sServerLogBaseName = sBaseName;
}
std::string CITANetAudioStreamingServer::GetServerLogBaseName() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment