VortexConnection * vortex_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.

See vortex_listener_new for more information.

ctxThe context where the operation will be performed.
hostThe host to listen to.
portThe port to listen to. Value defined for the port must be between 0 up to 65536.
on_readyA optional notify callback to get when vortex listener is ready to perform replies.
user_dataA user defined pointer to be passed in to on_ready handler.
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.

References VORTEX_IPv4.