Functions

Vortex Listener: Set of functions to create BEEP Listeners (server applications that accept incoming requests)

Functions

VORTEX_SOCKET vortex_listener_accept (VORTEX_SOCKET server_socket)
 Public function that performs a TCP listener accept.
void vortex_listener_accept_connection (VortexConnection *connection, axl_bool send_greetings)
 Common task to be done to accept a connection before greetings message is issued while working as a Listener.
const char * vortex_listener_get_default_realm (VortexCtx *ctx)
 Allows to get current realm configuration, used for all connections.
VortexConnectionvortex_listener_new (VortexCtx *ctx, const char *host, const char *port, VortexListenerReady on_ready, axlPointer user_data)
 Creates a new Vortex Listener accepting incoming connections on the given host:port configuration.
VortexConnectionvortex_listener_new2 (VortexCtx *ctx, const char *host, int port, VortexListenerReady on_ready, axlPointer user_data)
 Creates a new Vortex Listener accepting incoming connections on the given host:port configuration, receiving the port configuration as an integer value.
VortexConnectionvortex_listener_new_full (VortexCtx *ctx, const char *host, const char *port, VortexListenerReadyFull on_ready_full, axlPointer user_data)
 Creates a new listener, allowing to get the connection that represents the listener created with the optional handler (VortexListenerReadyFull).
VortexConnectionvortex_listener_new_full2 (VortexCtx *ctx, const char *host, const char *port, axl_bool register_conn, VortexListenerReadyFull on_ready_full, axlPointer user_data)
 Allows to create a BEEP listener optionally not registering it on vortex reader.
axl_bool vortex_listener_parse_conf_and_start (VortexCtx *ctx)
 Support function for Vortex Library listeners, that reads a xml file that contains listener information and starts the listener.
void vortex_listener_send_greetings_on_connect (VortexConnection *listener, axl_bool send_on_connect)
 Allows to configure a master listener connection (created via vortex_listener_new and similar) to not wait for client BEEP peer greetings to issue listener BEEP greetings.
void vortex_listener_set_default_realm (VortexCtx *ctx, const char *realm)
 Allows to configure the default realm to be used at the listener side, for all connections.
void vortex_listener_set_on_connection_accepted (VortexCtx *ctx, VortexOnAcceptedConnection on_accepted, axlPointer _data)
 Allows to configure a handler that is executed once a connection have been accepted.
void vortex_listener_shutdown (VortexConnection *listener, axl_bool also_created_conns)
 Allows to shutdown the listener provided and all connections that were created due to its function.
VORTEX_SOCKET vortex_listener_sock_listen (VortexCtx *ctx, const char *host, const char *port, axlError **error)
 Starts a generic TCP listener on the provided address and port.
void vortex_listener_unlock (VortexCtx *ctx)
 Unlock the the listener thread blocked at the vortex_listener_wait.
void vortex_listener_wait (VortexCtx *ctx)
 Blocks a listener (or listeners) launched until vortex finish.