Example #1
0
int main( int argc, char **argv )
{
	char 	*host = argv[1];
	int	 	port = atoi( argv[2] );
	int		burst = atoi( argv[3] );
	int		wait = atoi( argv[4] );
	int		bufsz = atoi( argv[5] );

	FileTransferClient ftc( host, port, burst, wait, bufsz );
//	FileTransferClient ftc( "localhost", 55555 );

	ftc.sendFile( "somefile.txt", "somefile.txt" );
}
Example #2
0
bool TimingAnalysis::start(void)
{
	// FIXME: conf->getString(CONF_ENTRY_FUNCTION) is not safe when multiple functions should be analysed
	entry_function = conf->getString(CONF_ENTRY_FUNCTION);
	LOG_INFO(logger, id_log_prefix << " Entering application with start label: " << entry_function);

	analyseProgram();

	analysePipeline();

	if(conf->getBool(CONF_MEMORY_SIZE_STEPPING))
	{
		MemorySizeStepper mss;
		report->generate_header();
		while(mss.isValidSize())
		{
			analyseImem(mss.getMemorySize());
			calculateEstimate(mss.getMemorySize());
			report->generate_line();
			mss.increaseSize();
		}
	}
	else
	{
		analyseImem();

		calculateEstimate();

		report->generate();
	}


	if(conf->getBool(CONF_EXPORT_FUNCTION_TABLE))
	{
		if(!conf->getBool(CONF_DISP_INSTRUMENTATION))
		{
			FunctionTableCreator ftc(conf->getString(CONF_FUNCTION_TABLE_FILE), conf->getBool(CONF_OLD_FUNCTION_TABLE_FORMAT));
			ftc.createFunctionTable(dp->getFCGObj());
		}

	}

	return ec_finished;
}