16 #ifndef SRC_VNET_SESSION_APPLICATION_H_ 17 #define SRC_VNET_SESSION_APPLICATION_H_ 30 typedef struct _stream_session_cb_vft
33 int (*add_segment_callback) (
u32 api_client_index,
const u8 * seg_name,
40 int (*session_connected_callback) (
u32 app_index,
u32 api_context,
56 typedef struct _application
83 u32 connects_seg_manager;
86 uword *listeners_table;
88 u32 first_segment_manager;
segment_manager_t * application_get_listen_segment_manager(application_t *app, stream_session_t *s)
struct _segment_manager_properties segment_manager_properties_t
application_t * application_get_if_valid(u32 index)
application_t * application_lookup(u32 api_client_index)
struct _stream_session_t stream_session_t
struct _stream_session_cb_vft session_cb_vft_t
application_t * application_new()
segment_manager_t * application_get_connect_segment_manager(application_t *app)
u32 application_get_index(application_t *app)
static int redirect_connect_callback(u32 server_api_client_index, void *mp_arg)
Redirect a connect_uri message to the indicated server.
struct _application application_t
int application_init(application_t *app, u32 api_client_index, u64 *options, session_cb_vft_t *cb_fns)
application_t * application_get(u32 index)
int builtin_server_rx_callback(stream_session_t *s)
struct _transport_endpoint transport_endpoint_t
struct _segment_manager segment_manager_t
int application_api_queue_is_full(application_t *app)
int application_start_listen(application_t *app, session_type_t session_type, transport_endpoint_t *tep, u64 *handle)
Start listening local transport endpoint for requested transport.
int application_open_session(application_t *app, session_type_t sst, transport_endpoint_t *tep, u32 api_context)
void application_del(application_t *app)
int application_stop_listen(application_t *srv, u64 handle)
Stop listening on session associated to handle.
struct _unix_shared_memory_queue unix_shared_memory_queue_t