Backend/Networking/service.cpp
/*!
 * @brief Run execute() asynchronusly as a Service
 * @details launch new service thread (command)
 * @param sockData a package of network data
 * @param cConnection the current connection
 */
@brief Run execute() asynchronusly as a Service
@details launch new service thread (command)
@param sockData a package of network data
@param cConnection the current connection
@brief Run execute () asynchronusly as a Service @details launch new service thread ( command ) @param sockData a package of network data @param cConnection the current connection
void Service::ExecuteService(GServer* serverInstance, const shmea::ServiceData* sockData,
							 Connection* cConnection)
{
	newServiceArgs* x = new newServiceArgs[sizeof(newServiceArgs)];
	x->serverInstance = serverInstance;
	x->cConnection = cConnection;
	x->sockData = sockData;
	x->sThread = new pthread_t[sizeof(pthread_t)];
	pthread_create(x->sThread, NULL, &launchService, (void*)x);
	if (x->sThread)
		pthread_detach(*x->sThread);
}
void Service :: ExecuteService ( GServer * serverInstance , const shmea :: ServiceData * sockData , Connection * cConnection ) { newServiceArgs * x = new newServiceArgs [ sizeof ( newServiceArgs ) ] ; x -> serverInstance = serverInstance ; x -> cConnection = cConnection ; x -> sockData = sockData ; x -> sThread = new pthread_t [ sizeof ( pthread_t ) ] ; pthread_create ( x -> sThread , NULL , & launchService , ( void * ) x ) ; if ( x -> sThread ) pthread_detach ( * x -> sThread ) ; }
@brief Run execute() asynchronusly as a Service
 @details launch new service thread (command)
 @param sockData a package of network data
 @param cConnection the current connection
@brief Run execute () asynchronusly as a Service @details launch new service thread ( command ) @param sockData a package of network data @param cConnection the current connection
// set the args to pass in // launch a new service thread