Initialize a future for the event listener, the future is resolved when a new connection event is ready or the listener has been stopped.
- NABTO_CLIENT_EC_OK if the a connection event is available in the event parameter.
- NABTO_CLIENT_EC_STOPPED if the listener is stopped.
NABTO_CLIENT_DECL_PREFIX void NABTO_CLIENT_API nabto_client_listener_connection_event(NabtoClientListener* listener, NabtoClientFuture* future, NabtoClientConnectionEvent* event)
- [in] The listener.
- [in] The future which is resolved when an connection event is ready.
- [out] The event which is overwritten when the future resolves with NABTO_CLIENT_EC_OK.