+uword unformat_stream_session (unformat_input_t * input, va_list * args);
+uword unformat_transport_connection (unformat_input_t * input,
+ va_list * args);
+
+void session_register_transport (transport_proto_t transport_proto,
+ const transport_proto_vft_t * vft, u8 is_ip4,
+ u32 output_node);
+
+always_inline void
+transport_add_tx_event (transport_connection_t * tc)
+{
+ stream_session_t *s = session_get (tc->s_index, tc->thread_index);
+ if (svm_fifo_has_event (s->server_tx_fifo))
+ return;
+ session_send_io_evt_to_thread (s->server_tx_fifo, FIFO_EVENT_APP_TX);
+}
+
+clib_error_t *vnet_session_enable_disable (vlib_main_t * vm, u8 is_en);
+
+always_inline svm_msg_q_t *
+session_manager_get_vpp_event_queue (u32 thread_index)
+{
+ return session_manager_main.vpp_event_queues[thread_index];
+}
+
+int session_manager_flush_enqueue_events (u8 proto, u32 thread_index);
+int session_manager_flush_all_enqueue_events (u8 transport_proto);
+
+always_inline u64
+listen_session_get_handle (stream_session_t * s)
+{
+ ASSERT (s->session_state == SESSION_STATE_LISTENING);
+ return session_handle (s);
+}
+
+always_inline stream_session_t *
+listen_session_get_from_handle (session_handle_t handle)
+{
+ return session_get_from_handle (handle);
+}
+
+always_inline void
+listen_session_parse_handle (session_handle_t handle, u32 * index,
+ u32 * thread_index)
+{
+ session_parse_handle (handle, index, thread_index);
+}
+
+always_inline stream_session_t *
+listen_session_new (u8 thread_index, session_type_t type)
+{
+ stream_session_t *s;
+ s = session_alloc (thread_index);
+ s->session_type = type;
+ s->session_state = SESSION_STATE_LISTENING;
+ return s;
+}
+
+always_inline stream_session_t *
+listen_session_get (u32 index)
+{
+ return session_get (index, 0);
+}
+
+always_inline void
+listen_session_del (stream_session_t * s)
+{
+ session_free (s);
+}
+
+transport_connection_t *listen_session_get_transport (stream_session_t * s);
+
+int
+listen_session_get_local_session_endpoint (stream_session_t * listener,
+ session_endpoint_t * sep);
+
+void session_flush_frames_main_thread (vlib_main_t * vm);
+
+always_inline u8
+session_manager_is_enabled ()
+{
+ return session_manager_main.is_enabled == 1;
+}
+
+#define session_cli_return_if_not_enabled() \
+do { \
+ if (!session_manager_main.is_enabled) \
+ return clib_error_return(0, "session layer is not enabled"); \
+} while (0)