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