static void schedule(void)
{
    int res = client_function();

    while (TEST_CONTINUE == res) {
        server_function();
        res = client_function();
    }

    testsuite_fail_if(res, "secure session: basic flow");
}
示例#2
0
文件: main.cpp 项目: veerwang/P0720
/* 
 * ===  FUNCTION  ======================================================================
 *         Name:  main
 *  Description:  Program entry point 
 * =====================================================================================
 */
	int 
main( int argc,char* argv[] )
{
	ShellCommand sch(VERSION);
	ShellCommand::SHELLCOMMAND result = sch.Analyze( argc,argv );
	if ( result == ShellCommand::NORMAL )
	{
		standard_function();
	}
	else if ( result == ShellCommand::SERVER )
	{
		server_function();
	}
	else if ( result == ShellCommand::CLIENT )
	{
		client_function();
	}
	else if ( result == ShellCommand::TEST )
	{
		Basicio basicio;
		basicio.test();
	}
	return EXIT_SUCCESS;
}