コード例 #1
0
ファイル: main.c プロジェクト: jamella/tlsperf
static void tls_endpoint_estab_handler(const char *cipher, void *arg)
{
	int err;
	(void)arg;

	re_fprintf(stderr, "\r[ %u .. %c ]",
		   tlsperf.count,
		   0x20 + tlsperf.count % 0x60);

	if (tls_endpoint_established(tlsperf.ep_cli) &&
	    tls_endpoint_established(tlsperf.ep_srv)) {

		if (tlsperf.count >= tlsperf.num) {

			tlsperf.ts_estab = tmr_jiffies();

			re_printf("\nDONE!\n");
			re_printf("cipher:        %s\n", cipher);
			print_report();

			re_cancel();
		}
		else {
			stop_test();
			err = start_test();
			if (err)
				abort_test(err);
		}
	}
}
コード例 #2
0
ファイル: usability.cpp プロジェクト: jeffsp/soma
/// @brief access function
///
/// @param f testing flag
void ButtonTab::setTesting (bool f)
{
    testing = f;
    if (testing)
        start_test ();
    else
        stop_test ();
}
コード例 #3
0
ファイル: usability.cpp プロジェクト: jeffsp/soma
/// @brief access function
///
/// @param f testing flag
void ScrollScene::setTesting (bool f)
{
    testing = f;
    if (testing)
        start_test ();
    else
        stop_test ();
}
コード例 #4
0
ファイル: usability.cpp プロジェクト: jeffsp/soma
/// @brief access function
///
/// @param f testing flag
void CursorScene::setTesting (bool f)
{
    testing = f;
    if (testing)
        start_test ();
    else
        stop_test ();
}
コード例 #5
0
ファイル: sipsess.c プロジェクト: traviscross/libre-test
static void estab_handler_b(const struct sip_msg *msg, void *arg)
{
	struct test *test = arg;

	(void)msg;

	test->estab_b = true;

	if (test->estab_a)
		stop_test();
}