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. More...
 
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. More...
 
const char * vortex_listener_get_default_realm (VortexCtx *ctx)
 Allows to get current realm configuration, used for all connections. More...
 
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. More...
 
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. More...
 
VortexConnectionvortex_listener_new6 (VortexCtx *ctx, const char *host, const char *port, VortexListenerReady on_ready, axlPointer user_data)
 Creates a new TCP/IPv6 Vortex Listener accepting incoming connections on the given host:port configuration. More...
 
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). More...
 
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. More...
 
VortexConnectionvortex_listener_new_full6 (VortexCtx *ctx, const char *host, const char *port, axl_bool register_conn, VortexListenerReadyFull on_ready_full, axlPointer user_data)
 Allows to create an IPv6 BEEP listener. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
axlPointer vortex_listener_set_port_sharing_handling (VortexCtx *ctx, const char *local_addr, const char *local_port, VortexPortShareHandler handler, axlPointer user_data)
 Allows to install a port share handler that will be called to detect and activate alternative transports that must be enabled before activating normal BEEP session. More...
 
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. More...
 
VORTEX_SOCKET vortex_listener_sock_listen (VortexCtx *ctx, const char *host, const char *port, axlError **error)
 Starts a generic TCP/IPv4 listener on the provided address and port. More...
 
VORTEX_SOCKET vortex_listener_sock_listen6 (VortexCtx *ctx, const char *host, const char *port, axlError **error)
 Starts a generic TCP/IPv6 listener on the provided address and port. More...
 
void vortex_listener_unlock (VortexCtx *ctx)
 Unlock the thread blocked at the vortex_listener_wait. More...
 
void vortex_listener_wait (VortexCtx *ctx)
 Blocks a listener (or listeners) launched until vortex finish. More...
 

Detailed Description