VortexConnection * vortex_listener_new2 ( 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.

See vortex_listener_new for more information.

Parameters:
host The host to listen to.
port The port to listen to. Value defined for the port must be between 0 up to 65536.
on_ready A optional notify callback to get when vortex listener is ready to perform replies.
user_data A user defined pointer to be passed in to on_ready handler.
Returns:
The listener connection created, or NULL if the optional handler is provided (on_ready).
NOTE: the reference returned is only owned by the vortex engine. This is not the case of vortex_connection_new where the caller acquires automatically a reference to the connection (as well as the vortex engine).

In this case, if your intention is to keep a reference for later operations, you must call to vortex_connection_ref to avoid losing the reference if the system drops the connection. In the same direction, you can't call to vortex_connection_close if you don't own the reference returned by this function.

To close immediately a listener you can use vortex_connection_shutdown.