client-c  0.6.3
ext_transport_channel.h File Reference
+ Include dependency graph for ext_transport_channel.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kaa_transport_context_t
 Uses to initialize transport channel implementation with Kaa specific transport context. More...
 
struct  kaa_transport_channel_interface_t
 Interface for a client transport channel implementation. More...
 

Typedefs

typedef kaa_error_t(* kaa_init_channel_fn )(void *channel_context, kaa_transport_context_t *transport_context)
 Initializes the transport channel implementation. More...
 
typedef kaa_error_t(* kaa_set_access_point_fn )(void *channel_context, kaa_access_point_t *access_point)
 Sets transport connection data. More...
 
typedef 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. More...
 
typedef 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. More...
 
typedef 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. More...
 
typedef kaa_error_t(* kaa_tcp_channel_destroy_fn )(void *context)
 Releases channel context. More...
 

Typedef Documentation

typedef 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.

Parameters
[in]contextChannel context.
[in,out]protocol_infoTransport protocol id instance to be filled in.
Returns
Error code.
See also
kaa_transport_protocol_id_t

Definition at line 79 of file ext_transport_channel.h.

typedef 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.

Parameters
[in]contextChannel context.
[in,out]supported_servicesList of the supported services.
[in,out]service_countNumber of the supported services.
Returns
Error code.
See also
kaa_service_t

Definition at line 94 of file ext_transport_channel.h.

typedef kaa_error_t(* kaa_init_channel_fn)(void *channel_context, kaa_transport_context_t *transport_context)

Initializes the transport channel implementation.

Parameters
[in]channel_contextChannel context.
[in]transport_contextKaa specific transport context.
Returns
Error code.

Definition at line 49 of file ext_transport_channel.h.

typedef kaa_error_t(* kaa_set_access_point_fn)(void *channel_context, kaa_access_point_t *access_point)

Sets transport connection data.

NOTE: Copy connection data for the local usage.

Parameters
[in]channel_contextChannel context.
[in]access_pointConnection data used to establish connection to Operations server.
Returns
Error code.

Definition at line 65 of file ext_transport_channel.h.

typedef 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.

Parameters
[in]contextChannel context.
[in]servicesList of services.
[in]service_countNumber of services.
Returns
Error code.
See also
kaa_service_t

Definition at line 110 of file ext_transport_channel.h.

typedef kaa_error_t(* kaa_tcp_channel_destroy_fn)(void *context)

Releases channel context.

Parameters
[in]contextChannel context.
Returns
Error code.

Definition at line 123 of file ext_transport_channel.h.