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); } } }
/// @brief access function /// /// @param f testing flag void ButtonTab::setTesting (bool f) { testing = f; if (testing) start_test (); else stop_test (); }
/// @brief access function /// /// @param f testing flag void ScrollScene::setTesting (bool f) { testing = f; if (testing) start_test (); else stop_test (); }
/// @brief access function /// /// @param f testing flag void CursorScene::setTesting (bool f) { testing = f; if (testing) start_test (); else stop_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(); }