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"); }
/* * === 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; }