44 u32 session_index,
u8 is_failed)
46 static u32 client_index = 0;
52 "Bapi connect errored on session %u", session_index);
56 ECHO_LOG (1,
"Connected session 0x%lx -> URI",
76 static u32 client_index = 0;
volatile u64 accepted_session_count
teardown_stat_t clean_count
echo_session_t * sessions
static void tcp_echo_reset_cb(session_reset_msg_t *mp, echo_session_t *s)
volatile connection_state_t state
static void tcp_echo_disconnected_cb(session_disconnected_msg_t *mp, echo_session_t *s)
volatile u32 n_clients_connected
#define ECHO_FAIL(fail, _fmt, _args...)
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
static void tcp_echo_cleanup_cb(echo_session_t *s, u8 parent_died)
#define SESSION_INVALID_INDEX
#define clib_atomic_sub_fetch(a, b)
#define ECHO_LOG(lvl, _fmt, _args...)
void echo_notify_event(echo_main_t *em, echo_test_evt_t e)
u32 *volatile data_thread_args
teardown_stat_t reset_count
static void tcp_echo_connected_cb(session_connected_bundled_msg_t *mp, u32 session_index, u8 is_failed)
#define clib_atomic_fetch_add(a, b)
teardown_stat_t close_count
ECHO_REGISTER_PROTO(TRANSPORT_PROTO_TCP, echo_tcp_proto_cb_vft)
volatile u64 bytes_to_receive
static void tcp_echo_disconnected_reply_cb(echo_session_t *s)
void echo_session_print_stats(echo_main_t *em, echo_session_t *session)
static void tcp_echo_accepted_cb(session_accepted_msg_t *mp, echo_session_t *session)
struct echo_main_t::@481 stats
void(* disconnected_cb)(session_disconnected_msg_t *mp, echo_session_t *s)