Examples/DpdkBridge/main.cpp
/**
 * The callback to be called when application is terminated by ctrl-c. Do cleanup and print summary stats
 */
The callback to be called when application is terminated by ctrl-c. Do cleanup and print summary stats
The callback to be called when application is terminated by ctrl - c . Do cleanup and print summary stats
void onApplicationInterrupted(void* cookie)
{
	DpdkBridgeArgs* args = (DpdkBridgeArgs*)cookie;
	std::cout
		<< std::endl << std::endl
		<< "Application stopped"
		<< std::endl;
	pcpp::DpdkDeviceList::getInstance().stopDpdkWorkerThreads();
	args->shouldStop = true;
}
void onApplicationInterrupted ( void * cookie ) { DpdkBridgeArgs * args = ( DpdkBridgeArgs * ) cookie ; std :: cout << std :: endl << std :: endl << " " << std :: endl ; pcpp :: DpdkDeviceList :: getInstance ( ) . stopDpdkWorkerThreads ( ) ; args -> shouldStop = true ; }
The callback to be called when application is terminated by ctrl-c. Do cleanup and print summary stats
The callback to be called when application is terminated by ctrl - c . Do cleanup and print summary stats
// stop worker threads