Backend/Networking/service.cpp
/*!
 * @brief Start a service
 * @details start a service and set variables
 * @param x pointer to new service arguments memory location
 */
@brief Start a service
@details start a service and set variables
@param x pointer to new service arguments memory location
@brief Start a service @details start a service and set variables @param x pointer to new service arguments memory location
void Service::StartService(newServiceArgs* x)
{
	timeExecuted = time(NULL);
	Connection* cConnection = x->cConnection;
	shmea::GString ipAddress = "";
	if (!cConnection->isFinished())
		ipAddress = cConnection->getIP();
	cThread = x->sThread;
}
void Service :: StartService ( newServiceArgs * x ) { timeExecuted = time ( NULL ) ; Connection * cConnection = x -> cConnection ; shmea :: GString ipAddress = " " ; if ( ! cConnection -> isFinished ( ) ) ipAddress = cConnection -> getIP ( ) ; cThread = x -> sThread ; }
@brief Start a service
 @details start a service and set variables
 @param x pointer to new service arguments memory location
@brief Start a service @details start a service and set variables @param x pointer to new service arguments memory location
// set the start time // Get the ip address // const shmea::GString& command = x->command; // printf("---------Service Start: %s (%s)---------\n", ipAddress.c_str(), command.c_str()); // add the thread to the connection's active thread vector