#include <kii_socket_callback.h>
#include <kii_task_callback.h>
Go to the source code of this file.
Functions | |
kii_socket_code_t | socket_connect_cb_impl (kii_socket_context_t *socket_context, const char *host, unsigned int port) |
kii_socket_code_t | socket_send_cb_impl (kii_socket_context_t *socket_context, const char *buffer, size_t length) |
kii_socket_code_t | socket_recv_cb_impl (kii_socket_context_t *socket_context, char *buffer, size_t length_to_read, size_t *out_actual_length) |
kii_socket_code_t | socket_close_cb_impl (kii_socket_context_t *socket_context) |
kii_socket_code_t | mqtt_connect_cb_impl (kii_socket_context_t *socket_context, const char *host, unsigned int port) |
kii_socket_code_t | mqtt_send_cb_impl (kii_socket_context_t *socket_context, const char *buffer, size_t length) |
kii_socket_code_t | mqtt_recv_cb_impl (kii_socket_context_t *socket_context, char *buffer, size_t length_to_read, size_t *out_actual_length) |
kii_socket_code_t | mqtt_close_cb_impl (kii_socket_context_t *socket_context) |
kii_task_code_t | task_create_cb_impl (const char *name, KII_TASK_ENTRY entry, void *param) |
void | delay_ms_cb_impl (unsigned int msec) |
void | logger_cb_impl (const char *format,...) |
void delay_ms_cb_impl | ( | unsigned int | msec | ) |
Implementation of callback to delay task. this SDK requirest to implement this function in each target environment.
This function is assigned to fields kii_t::kii_core_t::kii_http_context_t::kii_http_context_t::delay_ms_cb of command handler and state updater.
[in] | msec | millisecond to delay. |
void logger_cb_impl | ( | const char * | format, |
... | |||
) |
Implementation of callback to log this SDK. this SDK requirest to implement this function in each target environment.
This function is assigned to fields kii_t::kii_core_t::logger_cb of command handler and state updater.
[in] | format | outputted string format. |
kii_socket_code_t mqtt_close_cb_impl | ( | kii_socket_context_t * | socket_context | ) |
Implementation of callback to close MQTT socket. this SDK requirest to implement this function in each target environment.
This function is assigned to a field kii_t::kii_core_t::kii_http_context_t::kii_http_context_t::mqtt_socket_close_cb of command handler.
[in] | socket_context | context object. |
kii_socket_code_t mqtt_connect_cb_impl | ( | kii_socket_context_t * | socket_context, |
const char * | host, | ||
unsigned int | port | ||
) |
Implementation of callback for connect MQTT socket to server. this SDK requirest to implement this function in each target environment.
This function is assigned to a field kii_t::kii_core_t::kii_http_context_t::kii_http_context_t::mqtt_socket_connect_cb of command handler.
[in] | socket_context | context object. |
[in] | host | host name. |
[in] | port | port number. |
kii_socket_code_t mqtt_recv_cb_impl | ( | kii_socket_context_t * | socket_context, |
char * | buffer, | ||
size_t | length_to_read, | ||
size_t * | out_actual_length | ||
) |
Implementation of callback to receive MQTT data from server. this SDK requirest to implement this function in each target environment.
This function is assigned to a field kii_t::kii_core_t::kii_http_context_t::kii_http_context_t::mqtt_socket_recv_cb of command handler.
[in] | socket_context | context object. |
[out] | buffer | buffer to set receiving data. |
[in] | length_to_read | buffer size. |
[out] | out_actual_length | actual set data size. |
kii_socket_code_t mqtt_send_cb_impl | ( | kii_socket_context_t * | socket_context, |
const char * | buffer, | ||
size_t | length | ||
) |
Implementation of callback to send MQTT data to server. this SDK requirest to implement this function in each target environment.
This function is assigned to a field kii_t::kii_core_t::kii_http_context_t::kii_http_context_t::mqtt_socket_send_cb of command handler.
[in] | socket_context | context object. |
[in] | buffer | data to send server. |
[in] | length | length of buffer. |
kii_socket_code_t socket_close_cb_impl | ( | kii_socket_context_t * | socket_context | ) |
Implementation of callback to close HTTP or HTTPS socket. this SDK requirest to implement this function in each target environment.
This function is assigned to fields kii_t::kii_core_t::kii_http_context_t::kii_http_context_t::close_cb of command handler and state updater.
[in] | socket_context | context object. |
kii_socket_code_t socket_connect_cb_impl | ( | kii_socket_context_t * | socket_context, |
const char * | host, | ||
unsigned int | port | ||
) |
Implementation of callback to connect socket to HTTP or HTTPS server. this SDK requirest to implement this function in each target environment.
This function is assigned to fields kii_t::kii_core_t::kii_http_context_t::kii_http_context_t::connect_cb of command handler and state updater.
[in] | socket_context | context object. |
[in] | host | host name. |
[in] | port | port number. |
kii_socket_code_t socket_recv_cb_impl | ( | kii_socket_context_t * | socket_context, |
char * | buffer, | ||
size_t | length_to_read, | ||
size_t * | out_actual_length | ||
) |
Implementation of callback for receive data from HTTP or HTTPS server. this SDK requirest to implement this function in each target environment.
This function is assigned to fields kii_t::kii_core_t::kii_http_context_t::kii_http_context_t::recv_cb of command handler and state updater.
[in] | socket_context | context object. |
[out] | buffer | buffer to set receiving data. |
[in] | length_to_read | buffer size. |
[out] | out_actual_length | actual set data size. |
kii_socket_code_t socket_send_cb_impl | ( | kii_socket_context_t * | socket_context, |
const char * | buffer, | ||
size_t | length | ||
) |
Implementation of callback to send data to HTTP or HTTPS server. this SDK requirest to implement this function in each target environment.
This function is assigned to fields kii_t::kii_core_t::kii_http_context_t::kii_http_context_t::send_cb of command handler and state updater.
[in] | socket_context | context object. |
[in] | buffer | data to send server. |
[in] | length | length of buffer. |
kii_task_code_t task_create_cb_impl | ( | const char * | name, |
KII_TASK_ENTRY | entry, | ||
void * | param | ||
) |
Implementation of callback to create task. this SDK requirest to implement this function in each target environment.
This function is assigned to fields kii_t::kii_core_t::kii_http_context_t::kii_http_context_t::task_create_cb of command handler and state updater.
[in] | name | name of task. |
[in] | entry | entry of task. |
[in] | stk_start | start position of stack area. |
[in] | stk_size | stack size of task |
[in] | priority | priority of thisk |