client-c  0.8.1
ext_transport_channel.h
Go to the documentation of this file.
1 
17 #ifndef EXT_TRANSPORT_CHANNEL_H_
18 #define EXT_TRANSPORT_CHANNEL_H_
19 
20 #include "../kaa_common.h"
21 #include "../kaa_platform_protocol.h"
22 #include "../kaa_bootstrap_manager.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 
29 
34 typedef struct {
37 
38 
39 
48 typedef kaa_error_t (*kaa_init_channel_fn)(void *channel_context
49  , kaa_transport_context_t *transport_context);
50 
51 
52 
64 typedef kaa_error_t (*kaa_set_access_point_fn)(void *channel_context
65  , kaa_access_point_t *access_point);
66 
67 
68 
78 typedef kaa_error_t (*kaa_get_protocol_id_fn)(void *context
79  , kaa_transport_protocol_id_t *protocol_info);
80 
81 
82 
94  , kaa_service_t **supported_services
95  , size_t *service_count);
96 
97 
98 
109 typedef kaa_error_t (*kaa_sync_handler_fn)(void *context
110  , const kaa_service_t services[]
111  , size_t service_count);
112 
113 
114 
122 typedef kaa_error_t (*kaa_tcp_channel_destroy_fn)(void *context);
123 
124 
125 
131 typedef struct {
132  void *context;
140 
141 
142 
143 #ifdef __cplusplus
144 } /* extern "C" */
145 #endif
146 
147 #endif /* EXT_TRANSPORT_CHANNEL_H_ */
Identifier used to uniquely represent transport protocol.
Definition: kaa_common.h:70
kaa_error_t
Definition: kaa_error.h:31
Interface for a client transport channel implementation.
kaa_service_t
Types of Kaa platform services.
Definition: kaa_common.h:57
Uses to initialize transport channel implementation with Kaa specific transport context.
kaa_error_t(* kaa_tcp_channel_destroy_fn)(void *context)
Releases channel context.
kaa_error_t(* kaa_init_channel_fn)(void *channel_context, kaa_transport_context_t *transport_context)
Initializes the transport channel implementation.
kaa_error_t(* kaa_get_protocol_id_fn)(void *context, kaa_transport_protocol_id_t *protocol_info)
Retrieves a transport protocol id supported by a transport channel implementation.
kaa_get_supported_services_fn get_supported_services
kaa_error_t(* kaa_set_access_point_fn)(void *channel_context, kaa_access_point_t *access_point)
Sets transport connection data.
kaa_error_t(* kaa_sync_handler_fn)(void *context, const kaa_service_t services[], size_t service_count)
Kaa sync request handler function for specific services.
Connection parameters used by transport channels to establish connection both to Bootstrap and Operat...
Definition: kaa_common.h:84
kaa_set_access_point_fn set_access_point
kaa_error_t(* kaa_get_supported_services_fn)(void *context, kaa_service_t **supported_services, size_t *service_count)
Retrieves the list of the supported services.
kaa_tcp_channel_destroy_fn destroy