nabto_client_connection_events_init_listener()

DESCRIPTION

Listen for events on a connection. Each time a future is resolved on the listener, the event parameter is set to the current event.

DECLARATION

NABTO_CLIENT_DECL_PREFIX NabtoClientError NABTO_CLIENT_API
nabto_client_connection_events_init_listener(NabtoClientConnection* connection, NabtoClientListener* listener)

PARAMETERS

connection:
The connection
listener:
The listener to associate with connection events.

RETURN VALUES

NABTO_CLIENT_EC_OK iff ok. NABTO_CLIENT_EC_INVALID_STATE if the listener is already initialized or some other invalid state.

EXAMPLES

None.