driver/src/tcp/tcp.cpp
void Tcp::closeSocket()
{
	// Close TCP socket
	if (isOpen() == true)
	{
		// Verbindung schliessen
#ifdef _MSC_VER
		::shutdown(m_connectionSocket, SD_BOTH);
		closesocket(m_connectionSocket);  // waere evtl. auch fuer Linux korrekt
#else
		::shutdown(m_connectionSocket, SHUT_RDWR);
		::close(m_connectionSocket);
#endif
		m_connectionSocket = -1;	// Keine Verbindung mehr
	}
}
/**
 * Closes the tcp connection (if it's currently open)
 */
Closes the tcp connection (if it's currently open)
Closes the tcp connection ( if it ' s currently open )
void Tcp::closeSocket()
{
	if (isOpen() == true)
	{
#ifdef _MSC_VER
		::shutdown(m_connectionSocket, SD_BOTH);
		closesocket(m_connectionSocket);  
#else
		::shutdown(m_connectionSocket, SHUT_RDWR);
		::close(m_connectionSocket);
#endif
		m_connectionSocket = -1;	
	}
}
void Tcp :: closeSocket ( ) { if ( isOpen ( ) == true ) { #ifdef _MSC_VER :: shutdown ( m_connectionSocket , SD_BOTH ) ; closesocket ( m_connectionSocket ) ; #else :: shutdown ( m_connectionSocket , SHUT_RDWR ) ; :: close ( m_connectionSocket ) ; #endif m_connectionSocket = -1 ; } }
Closes the tcp connection (if it's currently open)
Closes the tcp connection ( if it ' s currently open )
// Close TCP socket // Verbindung schliessen // waere evtl. auch fuer Linux korrekt // Keine Verbindung mehr