Backend/Networking/service.cpp
/*!
 * @brief Exit Service
 * @details exit from a service
 * @param x points to memory location for serviceArgs data
 */
@brief Exit Service
@details exit from a service
@param x points to memory location for serviceArgs data
@brief Exit Service @details exit from a service @param x points to memory location for serviceArgs data
void Service::ExitService(newServiceArgs* x)
{
	Connection* cConnection = x->cConnection;
	shmea::GString ipAddress = "";
	if (!cConnection->isFinished())
		ipAddress = cConnection->getIP();
	timeExecuted = time(NULL) - timeExecuted;
	pthread_exit(0);
}
void Service :: ExitService ( newServiceArgs * x ) { Connection * cConnection = x -> cConnection ; shmea :: GString ipAddress = " " ; if ( ! cConnection -> isFinished ( ) ) ipAddress = cConnection -> getIP ( ) ; timeExecuted = time ( NULL ) - timeExecuted ; pthread_exit ( 0 ) ; }
@brief Exit Service
 @details exit from a service
 @param x points to memory location for serviceArgs data
@brief Exit Service @details exit from a service @param x points to memory location for serviceArgs data
// Get the ip address // Set and print the execution time // printf("---------Service Exit: %s (%s); %llds---------\n", ipAddress.c_str(), //	   x->command.c_str(), timeExecuted);