18 #ifndef KAA_TCP_CHANNEL_H_
19 #define KAA_TCP_CHANNEL_H_
23 #include <platform/defaults.h>
75 ,
size_t supported_service_count);
127 , uint16_t *max_timeout);
Definition: kaa_tcp_channel.h:32
kaa_error_t
Definition: kaa_error.h:31
Interface for a client transport channel implementation.
Definition: ext_transport_channel.h:130
kaa_error_t kaa_tcp_channel_process_event(kaa_transport_channel_interface_t *self, fd_event_t event_type)
Notifies the channel instance about the I/O event.
kaa_error_t kaa_tcp_channel_disconnect(kaa_transport_channel_interface_t *self)
Disconnects the current channel.
kaa_extension_id
Kaa extensions.
Definition: kaa_common.h:35
struct kaa_logger_t kaa_logger_t
Definition: kaa_log.h:68
Definition: kaa_tcp_channel.h:41
Definition: kaa_tcp_channel.h:34
bool kaa_tcp_channel_is_ready(kaa_transport_channel_interface_t *self, fd_event_t event_type)
Checks whether the given channel instance is ready to handle the specified event. ...
kaa_error_t kaa_tcp_channel_check_keepalive(kaa_transport_channel_interface_t *self)
Checks whether a keepalive timeout occurred.
kaa_tcp_channel_event_t
Definition: kaa_tcp_channel.h:38
kaa_error_t(* on_kaa_tcp_channel_event_fn)(void *context, kaa_tcp_channel_event_t event_type, kaa_fd_t fd)
Notifies about the current channel's state.
Definition: kaa_tcp_channel.h:57
Definition: kaa_tcp_channel.h:40
kaa_error_t kaa_tcp_channel_get_max_timeout(kaa_transport_channel_interface_t *self, uint16_t *max_timeout)
Retrieves the maximum timeout for the multiplexing I/O like select/poll.
External interface for socket manipulations used by Kaa transport channel implementations.
kaa_error_t kaa_tcp_channel_get_descriptor(kaa_transport_channel_interface_t *self, kaa_fd_t *fd_p)
Retrieves the socket descriptor from the given channel instance.
Definition: kaa_tcp_channel.h:39
kaa_error_t kaa_tcp_channel_create(kaa_transport_channel_interface_t *self, kaa_logger_t *logger, kaa_extension_id *supported_services, size_t supported_service_count)
Creates a Kaa TCP channel instance.
Definition: kaa_tcp_channel.h:33
kaa_error_t kaa_tcp_channel_set_socket_events_callback(kaa_transport_channel_interface_t *self, on_kaa_tcp_channel_event_fn callback, void *context)
Sets the callback for the current channel connection state.
fd_event_t
Definition: kaa_tcp_channel.h:31