typedef VORTEX_SOCKET(* VortexExternalOnAccept)(VortexCtx *ctx, VortexConnection *listener, VORTEX_SOCKET _listener_socket, axlPointer on_accept_data)

Configures the handler that will be called to accept the incoming socket on the provided listener.

Parameters
ctxThe context where the operation happens
listenerThe listener where the connection was received
on_accept_dataUser defined pointer configured at vortex_external_listener_new
Returns
The function returns a working socket accepted otherwise returns VORTEX_INVALID_SOCKET or -1.