|
Webcom C SDK
|
#include <webcom-eli.h>
Data Fields | |
| void(* | on_connected )(wc_context_t *ctx) |
| int(* | on_disconnected )(wc_context_t *ctx) |
| int(* | on_error )(wc_context_t *ctx, unsigned next_try, const char *error, int error_len) |
| void(* | on_auth_success )(wc_context_t *ctx, struct wc_auth_info *ai) |
| void(* | on_auth_error )(wc_context_t *ctx, char *error) |
Callbacks to pass to the event loop integration. You can set one callback to NULL if you are not interested in the event.
| void(* wc_eli_callbacks::on_auth_error) (wc_context_t *ctx, char *error) |
called on error reply from the authentication server
| ctx | |
| error |
| void(* wc_eli_callbacks::on_auth_success) (wc_context_t *ctx, struct wc_auth_info *ai) |
called on success reply from the authentication server
| ctx | the context |
| ai | a structure bearing the informations about the authentication |
| void(* wc_eli_callbacks::on_connected) (wc_context_t *ctx) |
called when the connection to the server is up
| ctx | the context |
| int(* wc_eli_callbacks::on_disconnected) (wc_context_t *ctx) |
called when the connection to the server is closed
| ctx | the context |
| error | NULL if no error occurred, an error string on error |
| int(* wc_eli_callbacks::on_error) (wc_context_t *ctx, unsigned next_try, const char *error, int error_len) |
called when the connection to the server is close on error
| ctx | the context |
| next_try | delay, in seconds, before the next automatic reconnection attempt, 0 if no next attempt |
| error | a string describing the error (may not be null terminated) |
| error_len | the error string length |
1.8.13