driver/src/tcp/tcp.cpp
void Tcp::close()
{
	printInfoMessage("Tcp::close: Closing Tcp connection.", m_beVerbose);

	// Dem Lese-Thread ein Ende signalisieren
	if(m_readThread)
		m_readThread->m_threadShouldRun = false;
	// Close TCP socket
	if (isOpen() == true)
	{
		closeSocket();
	}
	else
	{
		printInfoMessage("Tcp::close: Nothing to do - no open connection? Aborting.", m_beVerbose);
	}
    // Thread stoppen
	if(m_readThread)
		stopReadThread();
	m_last_tcp_msg_received_nsec = 0; // no message received

	printInfoMessage("Tcp::close: Done - Connection is now closed.", m_beVerbose);
}
//
// Close an open connection, if any, and stops the read thread (if running)
//
Close an open connection, if any, and stops the read thread (if running)
Close an open connection if any and stops the read thread ( if running )
void Tcp::close()
{
	printInfoMessage("Tcp::close: Closing Tcp connection.", m_beVerbose);
	if(m_readThread)
		m_readThread->m_threadShouldRun = false;
	if (isOpen() == true)
	{
		closeSocket();
	}
	else
	{
		printInfoMessage("Tcp::close: Nothing to do - no open connection? Aborting.", m_beVerbose);
	}
	if(m_readThread)
		stopReadThread();
	m_last_tcp_msg_received_nsec = 0; 
	printInfoMessage("Tcp::close: Done - Connection is now closed.", m_beVerbose);
}
void Tcp :: close ( ) { printInfoMessage ( " " , m_beVerbose ) ; if ( m_readThread ) m_readThread -> m_threadShouldRun = false ; if ( isOpen ( ) == true ) { closeSocket ( ) ; } else { printInfoMessage ( " " , m_beVerbose ) ; } if ( m_readThread ) stopReadThread ( ) ; m_last_tcp_msg_received_nsec = 0 ; printInfoMessage ( " " , m_beVerbose ) ; }
Close an open connection, if any, and stops the read thread (if running)
Close an open connection if any and stops the read thread ( if running )
// Dem Lese-Thread ein Ende signalisieren // Close TCP socket // Thread stoppen // no message received