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,
56 typedef struct _application
86 u32 connects_seg_manager;
89 uword *listeners_table;
96 u32 first_segment_manager;
97 u8 first_segment_manager_in_use;
102 u16 proxied_transports;
105 #define APP_INVALID_INDEX ((u32)~0) 106 #define APP_DROP_INDEX (((u32)~0) - 1) 107 #define APP_NS_INVALID_INDEX ((u32)~0) 108 #define APP_INVALID_SEGMENT_MANAGER_INDEX ((u32) ~0) segment_manager_t * application_get_listen_segment_manager(application_t *app, stream_session_t *s)
application_t * application_get_if_valid(u32 index)
int application_start_listen(application_t *app, session_endpoint_t *tep, u64 *handle)
Start listening local transport endpoint for requested transport.
void application_remove_proxy(application_t *app)
u32 application_n_listeners(application_t *app)
application_t * application_lookup(u32 api_client_index)
struct _stream_session_cb_vft session_cb_vft_t
struct _stream_session_t stream_session_t
application_t * application_new()
struct _session_endpoint session_endpoint_t
int application_is_builtin(application_t *app)
stream_session_t * application_first_listener(application_t *app, u8 fib_proto, u8 transport_proto)
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_add_segment_notify(u32 app_index, u32 fifo_segment_index)
u8 * application_name_from_index(u32 app_index)
Returns app name.
int application_init(application_t *app, u32 api_client_index, u64 *options, session_cb_vft_t *cb_fns)
int application_open_session(application_t *app, session_endpoint_t *tep, u32 api_context)
u8 application_has_global_scope(application_t *app)
application_t * application_get(u32 index)
int builtin_server_rx_callback(stream_session_t *s)
int application_is_proxy(application_t *app)
u32 application_session_table(application_t *app, u8 fib_proto)
u32 application_local_session_table(application_t *app)
struct _segment_manager segment_manager_t
u8 application_has_local_scope(application_t *app)
int application_is_builtin_proxy(application_t *app)
int application_api_queue_is_full(application_t *app)
void application_setup_proxy(application_t *app)
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