|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
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 (2,
"Connected session 0x%lx -> URI",
76 static u32 client_index = 0;
u32 *volatile data_thread_args
#define ECHO_FAIL(fail, _fmt, _args...)
echo_session_t * sessions
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
volatile u32 n_clients_connected
echo_proto_cb_vft_t echo_tcp_proto_cb_vft
volatile u64 accepted_session_count
@ ECHO_EVT_FIRST_QCONNECT
volatile connection_state_t state
#define SESSION_INVALID_INDEX
@ ECHO_SESSION_TYPE_STREAM
static void tcp_echo_disconnected_cb(session_disconnected_msg_t *mp, echo_session_t *s)
@ ECHO_SESSION_STATE_READY
void echo_session_print_stats(echo_main_t *em, echo_session_t *session)
static void tcp_echo_connected_cb(session_connected_bundled_msg_t *mp, u32 session_index, u8 is_failed)
@ ECHO_SESSION_STATE_AWAIT_DATA
@ ECHO_SESSION_STATE_CLOSING
echo_proto_cb_vft_t echo_tls_proto_cb_vft
@ ECHO_EVT_FIRST_SCONNECT
#define clib_atomic_sub_fetch(a, b)
#define clib_atomic_fetch_add(a, b)
static void tcp_echo_accepted_cb(session_accepted_msg_t *mp, echo_session_t *session)
volatile u64 bytes_to_receive
@ ECHO_EVT_LAST_SCONNECTED
teardown_stat_t reset_count
static void tcp_echo_sent_disconnect_cb(echo_session_t *s)
teardown_stat_t clean_count
static void tcp_echo_reset_cb(session_reset_msg_t *mp, echo_session_t *s)
#define ECHO_LOG(lvl, _fmt, _args...)
teardown_stat_t close_count
void(* disconnected_cb)(session_disconnected_msg_t *mp, echo_session_t *s)
@ ECHO_SESSION_STATE_CLOSED
void echo_notify_event(echo_main_t *em, echo_test_evt_t e)
static void tcp_echo_cleanup_cb(echo_session_t *s, u8 parent_died)
ECHO_REGISTER_PROTO(TRANSPORT_PROTO_TCP, echo_tcp_proto_cb_vft)