client-c
0.8.1
Main Page
Classes
Files
File List
File Members
esp8266_kaa_tcp_channel.h
Go to the documentation of this file.
1
17
/*
18
* @file esp8266_kaa_tcp_channel.h
19
*
20
* Created on: Apr 17, 2015
21
* Author: Andriy Panasenko <apanasenko@cybervisiontech.com>
22
*/
23
24
#ifndef ESP8266_ESP8266_KAA_TCP_CHANNEL_H_
25
#define ESP8266_KAA_TCP_CHANNEL_H_
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
31
#include "../../../../kaa_error.h"
32
#include "../../../../platform/ext_transport_channel.h"
33
#include "../../../../platform/defaults.h"
34
35
kaa_error_t
kaa_tcp_channel_create
(
kaa_transport_channel_interface_t
*
self
36
,
kaa_logger_t
*logger
37
,
kaa_service_t
*supported_services
38
,
size_t
supported_service_count);
39
40
kaa_error_t
kaa_tcp_channel_get_access_point
(
kaa_transport_channel_interface_t
*
self
41
,
char
**hostname,
size_t
*hostname_size, uint16_t *port);
42
43
kaa_error_t
kaa_tcp_channel_get_buffer_for_send
(
kaa_transport_channel_interface_t
*
self
44
, uint8 **buffer,
size_t
*buffer_size);
45
46
kaa_error_t
kaa_tcp_channel_free_send_buffer
(
kaa_transport_channel_interface_t
*
self
,
size_t
bytes_written);
47
48
kaa_error_t
kaa_tcp_channel_read_bytes
(
kaa_transport_channel_interface_t
*
self
,
const
uint8 *buffer,
const
size_t
buffer_size);
49
50
kaa_error_t
kaa_tcp_channel_disconnected
(
kaa_transport_channel_interface_t
*
self
);
51
52
kaa_error_t
kaa_tcp_channel_connected
(
kaa_transport_channel_interface_t
*
self
);
53
54
bool
kaa_tcp_channel_connection_is_ready_to_terminate
(
kaa_transport_channel_interface_t
*
self
);
55
56
kaa_error_t
kaa_tcp_channel_check_keepalive
(
kaa_transport_channel_interface_t
*
self
);
57
58
#ifdef __cplusplus
59
}
/* extern "C" */
60
#endif
61
#endif
/* ESP8266_KAA_TCP_CHANNEL_H_ */
kaa_tcp_channel_connected
kaa_error_t kaa_tcp_channel_connected(kaa_transport_channel_interface_t *self)
kaa_tcp_channel_create
kaa_error_t kaa_tcp_channel_create(kaa_transport_channel_interface_t *self, kaa_logger_t *logger, kaa_service_t *supported_services, size_t supported_service_count)
kaa_tcp_channel_check_keepalive
kaa_error_t kaa_tcp_channel_check_keepalive(kaa_transport_channel_interface_t *self)
kaa_error_t
kaa_error_t
Definition:
kaa_error.h:31
kaa_transport_channel_interface_t
Interface for a client transport channel implementation.
Definition:
ext_transport_channel.h:131
kaa_service_t
kaa_service_t
Types of Kaa platform services.
Definition:
kaa_common.h:57
kaa_logger_t
struct kaa_logger_t kaa_logger_t
Definition:
kaa_context.h:85
kaa_tcp_channel_get_buffer_for_send
kaa_error_t kaa_tcp_channel_get_buffer_for_send(kaa_transport_channel_interface_t *self, uint8 **buffer, size_t *buffer_size)
kaa_tcp_channel_free_send_buffer
kaa_error_t kaa_tcp_channel_free_send_buffer(kaa_transport_channel_interface_t *self, size_t bytes_written)
kaa_tcp_channel_get_access_point
kaa_error_t kaa_tcp_channel_get_access_point(kaa_transport_channel_interface_t *self, char **hostname, size_t *hostname_size, uint16_t *port)
kaa_tcp_channel_connection_is_ready_to_terminate
bool kaa_tcp_channel_connection_is_ready_to_terminate(kaa_transport_channel_interface_t *self)
kaa_tcp_channel_disconnected
kaa_error_t kaa_tcp_channel_disconnected(kaa_transport_channel_interface_t *self)
kaa_tcp_channel_read_bytes
kaa_error_t kaa_tcp_channel_read_bytes(kaa_transport_channel_interface_t *self, const uint8 *buffer, const size_t buffer_size)
var
lib
jenkins
workspace
kaa_release_0_8_1
client
client-multi
client-c
src
kaa
platform-impl
stm32
leafMapleMini
esp8266
esp8266_kaa_tcp_channel.h
Generated on Tue Mar 15 2016 21:03:26 for client-c by
1.8.7