VortexConnection * vortex_external_listener_new ( VortexCtx ctx,
VORTEX_SOCKET  _session,
VortexSendHandler  _send_handler,
VortexReceiveHandler  _received_handler,
VortexExternalSetup setup,
VortexExternalOnAccept  on_accept_handler,
axlPointer  on_accept_data 
)

Allows to create a new BEEP listener accepting connections over External/unknown transport.

Parameters
ctxThe context where the operation is taking place.
_sessionAlready created transport represented by a watchable socket.
_send_handlerThe send/write handler that will be configured on any accepted connection. For more information see VortexSendHandler, vortex_connection_set_send_handler
_received_handlerThe read/recv handler that will be configured on any accepted connection. For more information see VortexReceiveHandler, vortex_connection_set_receive_handler
setupA reference (optional) to the setup object (vortex_external_setup_new).
on_accept_handlerThe handler that will be called every time an incoming connection is received on the provided master listener socket (_session). The function must return a newly created socket to allow Vortex Engine to create the BEEP session.
on_accept_dataA user defined pointer that will be passed to on_accept_handler
Returns
The function returns a newly created BEEP listener (over External) or NULL if the optional handler is provided (on_ready). See vortex_listener_new_full to know more about the value returned by this function as this function is just a wrapper to it, providing the needed bridging between BEEP and External.

References vortex_connection_get_id(), vortex_connection_is_ok(), vortex_connection_set_data_full(), vortex_connection_set_preread_handler(), vortex_connection_shutdown(), and VortexRoleMasterListener.