|
| bool | ct_listener_is_closed (const ct_listener_t *listener) |
| | Check if a listener is closed.
|
| |
| void * | ct_listener_get_callback_context (const ct_listener_t *listener) |
| | Get the callback context associated with a listener.
|
| |
| void | ct_listener_close (ct_listener_t *listener) |
| | Close a listener and stop accepting new connections.
|
| |
| void | ct_listener_free (ct_listener_t *listener) |
| | Free resources in a listener.
|
| |
| int | ct_initialize (void) |
| | Initialize the CTaps library.
|
| |
| int | ct_start_event_loop (void) |
| | Start the CTaps event loop (blocking operation).
|
| |
| int | ct_close (void) |
| | Close and cleanup the CTaps library.
|
| |
| void | ct_set_log_level (ct_log_level_enum_t level) |
| | Set the minimum logging level for CTaps.
|
| |
| int | ct_add_log_file (const char *file_path, ct_log_level_enum_t min_level) |
| | Add a file output destination for CTaps logs.
|
| |
| ct_selection_preference_enum_t | ct_transport_properties_get_reliability (const ct_transport_properties_t *transport_props) |
| |
| ct_selection_preference_enum_t | ct_transport_properties_get_preserve_msg_boundaries (const ct_transport_properties_t *transport_props) |
| |
| ct_selection_preference_enum_t | ct_transport_properties_get_per_msg_reliability (const ct_transport_properties_t *transport_props) |
| |
| ct_selection_preference_enum_t | ct_transport_properties_get_preserve_order (const ct_transport_properties_t *transport_props) |
| |
| ct_selection_preference_enum_t | ct_transport_properties_get_zero_rtt_msg (const ct_transport_properties_t *transport_props) |
| |
| ct_selection_preference_enum_t | ct_transport_properties_get_multistreaming (const ct_transport_properties_t *transport_props) |
| |
| ct_selection_preference_enum_t | ct_transport_properties_get_full_checksum_send (const ct_transport_properties_t *transport_props) |
| |
| ct_selection_preference_enum_t | ct_transport_properties_get_full_checksum_recv (const ct_transport_properties_t *transport_props) |
| |
| ct_selection_preference_enum_t | ct_transport_properties_get_congestion_control (const ct_transport_properties_t *transport_props) |
| |
| ct_selection_preference_enum_t | ct_transport_properties_get_keep_alive (const ct_transport_properties_t *transport_props) |
| |
| ct_selection_preference_enum_t | ct_transport_properties_get_use_temporary_local_address (const ct_transport_properties_t *transport_props) |
| |
| ct_multipath_enum_t | ct_transport_properties_get_multipath (const ct_transport_properties_t *transport_props) |
| |
| ct_selection_preference_enum_t | ct_transport_properties_get_advertises_alt_address (const ct_transport_properties_t *transport_props) |
| |
| ct_direction_of_communication_enum_t | ct_transport_properties_get_direction (const ct_transport_properties_t *transport_props) |
| |
| ct_selection_preference_enum_t | ct_transport_properties_get_soft_error_notify (const ct_transport_properties_t *transport_props) |
| |
| ct_selection_preference_enum_t | ct_transport_properties_get_active_read_before_send (const ct_transport_properties_t *transport_props) |
| |
| void | ct_transport_properties_set_reliability (ct_transport_properties_t *transport_props, ct_selection_preference_enum_t val) |
| |
| void | ct_transport_properties_set_preserve_msg_boundaries (ct_transport_properties_t *transport_props, ct_selection_preference_enum_t val) |
| |
| void | ct_transport_properties_set_per_msg_reliability (ct_transport_properties_t *transport_props, ct_selection_preference_enum_t val) |
| |
| void | ct_transport_properties_set_preserve_order (ct_transport_properties_t *transport_props, ct_selection_preference_enum_t val) |
| |
| void | ct_transport_properties_set_zero_rtt_msg (ct_transport_properties_t *transport_props, ct_selection_preference_enum_t val) |
| |
| void | ct_transport_properties_set_multistreaming (ct_transport_properties_t *transport_props, ct_selection_preference_enum_t val) |
| |
| void | ct_transport_properties_set_full_checksum_send (ct_transport_properties_t *transport_props, ct_selection_preference_enum_t val) |
| |
| void | ct_transport_properties_set_full_checksum_recv (ct_transport_properties_t *transport_props, ct_selection_preference_enum_t val) |
| |
| void | ct_transport_properties_set_congestion_control (ct_transport_properties_t *transport_props, ct_selection_preference_enum_t val) |
| |
| void | ct_transport_properties_set_keep_alive (ct_transport_properties_t *transport_props, ct_selection_preference_enum_t val) |
| |
| void | ct_transport_properties_set_use_temporary_local_address (ct_transport_properties_t *transport_props, ct_selection_preference_enum_t val) |
| |
| void | ct_transport_properties_set_multipath (ct_transport_properties_t *transport_props, ct_multipath_enum_t val) |
| |
| void | ct_transport_properties_set_advertises_alt_address (ct_transport_properties_t *transport_props, ct_selection_preference_enum_t val) |
| |
| void | ct_transport_properties_set_direction (ct_transport_properties_t *transport_props, ct_direction_of_communication_enum_t val) |
| |
| void | ct_transport_properties_set_soft_error_notify (ct_transport_properties_t *transport_props, ct_selection_preference_enum_t val) |
| |
| void | ct_transport_properties_set_active_read_before_send (ct_transport_properties_t *transport_props, ct_selection_preference_enum_t val) |
| |
| ct_selection_preference_enum_t | ct_transport_properties_get_interface_preference (const ct_transport_properties_t *transport_props, const char *value) |
| |
| ct_selection_preference_enum_t | ct_transport_properties_get_pvd_preference (const ct_transport_properties_t *transport_props, const char *value) |
| |
| int | ct_transport_properties_add_interface_preference (ct_transport_properties_t *transport_props, const char *value, ct_selection_preference_enum_t preference) |
| |
| int | ct_transport_properties_add_pvd_preference (ct_transport_properties_t *transport_props, const char *value, ct_selection_preference_enum_t preference) |
| |
| uint32_t | ct_transport_properties_get_recv_checksum_len (const ct_transport_properties_t *transport_props) |
| |
| uint8_t | ct_transport_properties_get_conn_priority (const ct_transport_properties_t *transport_props) |
| |
| uint32_t | ct_transport_properties_get_conn_timeout_ms (const ct_transport_properties_t *transport_props) |
| |
| uint32_t | ct_transport_properties_get_keep_alive_timeout (const ct_transport_properties_t *transport_props) |
| |
| ct_connection_scheduler_enum_t | ct_transport_properties_get_conn_scheduler (const ct_transport_properties_t *transport_props) |
| |
| ct_capacity_profile_enum_t | ct_transport_properties_get_conn_capacity_profile (const ct_transport_properties_t *transport_props) |
| |
| ct_multipath_policy_enum_t | ct_transport_properties_get_multipath_policy (const ct_transport_properties_t *transport_props) |
| |
| uint64_t | ct_transport_properties_get_min_send_rate (const ct_transport_properties_t *transport_props) |
| |
| uint64_t | ct_transport_properties_get_min_recv_rate (const ct_transport_properties_t *transport_props) |
| |
| uint64_t | ct_transport_properties_get_max_send_rate (const ct_transport_properties_t *transport_props) |
| |
| uint64_t | ct_transport_properties_get_max_recv_rate (const ct_transport_properties_t *transport_props) |
| |
| uint64_t | ct_transport_properties_get_group_conn_limit (const ct_transport_properties_t *transport_props) |
| |
| bool | ct_transport_properties_get_isolate_session (const ct_transport_properties_t *transport_props) |
| |
| void | ct_transport_properties_set_recv_checksum_len (ct_transport_properties_t *transport_props, uint32_t val) |
| |
| void | ct_transport_properties_set_conn_priority (ct_transport_properties_t *transport_props, uint8_t val) |
| |
| void | ct_transport_properties_set_conn_timeout_ms (ct_transport_properties_t *transport_props, uint32_t val) |
| |
| void | ct_transport_properties_set_keep_alive_timeout (ct_transport_properties_t *transport_props, uint32_t val) |
| |
| void | ct_transport_properties_set_conn_scheduler (ct_transport_properties_t *transport_props, ct_connection_scheduler_enum_t val) |
| |
| void | ct_transport_properties_set_conn_capacity_profile (ct_transport_properties_t *transport_props, ct_capacity_profile_enum_t val) |
| |
| void | ct_transport_properties_set_multipath_policy (ct_transport_properties_t *transport_props, ct_multipath_policy_enum_t val) |
| |
| void | ct_transport_properties_set_min_send_rate (ct_transport_properties_t *transport_props, uint64_t val) |
| |
| void | ct_transport_properties_set_min_recv_rate (ct_transport_properties_t *transport_props, uint64_t val) |
| |
| void | ct_transport_properties_set_max_send_rate (ct_transport_properties_t *transport_props, uint64_t val) |
| |
| void | ct_transport_properties_set_max_recv_rate (ct_transport_properties_t *transport_props, uint64_t val) |
| |
| void | ct_transport_properties_set_group_conn_limit (ct_transport_properties_t *transport_props, uint64_t val) |
| |
| void | ct_transport_properties_set_isolate_session (ct_transport_properties_t *transport_props, bool val) |
| |
| uint32_t | ct_transport_properties_get_user_timeout_value_ms (const ct_transport_properties_t *transport_props) |
| |
| bool | ct_transport_properties_get_user_timeout_enabled (const ct_transport_properties_t *transport_props) |
| |
| bool | ct_transport_properties_get_user_timeout_changeable (const ct_transport_properties_t *transport_props) |
| |
| void | ct_transport_properties_set_user_timeout_value_ms (ct_transport_properties_t *transport_props, uint32_t val) |
| |
| void | ct_transport_properties_set_user_timeout_enabled (ct_transport_properties_t *transport_props, bool val) |
| |
| void | ct_transport_properties_set_user_timeout_changeable (ct_transport_properties_t *transport_props, bool val) |
| |
| uint64_t | ct_transport_properties_get_singular_transmission_msg_max_len (const ct_transport_properties_t *transport_props) |
| |
| uint64_t | ct_transport_properties_get_send_message_max_len (const ct_transport_properties_t *transport_props) |
| |
| uint64_t | ct_transport_properties_get_recv_message_max_len (const ct_transport_properties_t *transport_props) |
| |
| uint64_t | ct_message_properties_get_lifetime (const ct_message_properties_t *msg_props) |
| |
| uint32_t | ct_message_properties_get_priority (const ct_message_properties_t *msg_props) |
| |
| bool | ct_message_properties_get_ordered (const ct_message_properties_t *msg_props) |
| |
| bool | ct_message_properties_get_safely_replayable (const ct_message_properties_t *msg_props) |
| |
| bool | ct_message_properties_get_final (const ct_message_properties_t *msg_props) |
| |
| uint32_t | ct_message_properties_get_checksum_len (const ct_message_properties_t *msg_props) |
| |
| bool | ct_message_properties_get_reliable (const ct_message_properties_t *msg_props) |
| |
| ct_capacity_profile_enum_t | ct_message_properties_get_capacity_profile (const ct_message_properties_t *msg_props) |
| |
| bool | ct_message_properties_get_no_fragmentation (const ct_message_properties_t *msg_props) |
| |
| bool | ct_message_properties_get_no_segmentation (const ct_message_properties_t *msg_props) |
| |
| void | ct_message_properties_set_lifetime (ct_message_properties_t *msg_props, uint64_t val) |
| |
| void | ct_message_properties_set_priority (ct_message_properties_t *msg_props, uint32_t val) |
| |
| void | ct_message_properties_set_ordered (ct_message_properties_t *msg_props, bool val) |
| |
| void | ct_message_properties_set_safely_replayable (ct_message_properties_t *msg_props, bool val) |
| |
| void | ct_message_properties_set_final (ct_message_properties_t *msg_props, bool val) |
| |
| void | ct_message_properties_set_checksum_len (ct_message_properties_t *msg_props, uint32_t val) |
| |
| void | ct_message_properties_set_reliable (ct_message_properties_t *msg_props, bool val) |
| |
| void | ct_message_properties_set_capacity_profile (ct_message_properties_t *msg_props, ct_capacity_profile_enum_t val) |
| |
| void | ct_message_properties_set_no_fragmentation (ct_message_properties_t *msg_props, bool val) |
| |
| void | ct_message_properties_set_no_segmentation (ct_message_properties_t *msg_props, bool val) |
| |
| ct_message_properties_t * | ct_message_properties_new (void) |
| | Create a new message properties object with default values.
|
| |
| void | ct_message_properties_free (ct_message_properties_t *message_properties) |
| | Free resources in message properties.
|
| |
| int | ct_security_parameters_set_ticket_store_path (ct_security_parameters_t *sec, const char *ticket_store_path) |
| | Set the path to the ticket store for QUIC session resumption.
|
| |
| int | ct_security_parameters_set_server_name_identification (ct_security_parameters_t *sec, const char *sni) |
| | Set the server name identification (SNI) for TLS connections.
|
| |
| int | ct_security_parameters_add_server_certificate (ct_security_parameters_t *sec, const char *cert_file, const char *key_file) |
| | Add a server certificate and private key for TLS connections.
|
| |
| int | ct_security_parameters_add_client_certificate (ct_security_parameters_t *sec, const char *cert_file, const char *key_file) |
| | Add a client certificate and private key for TLS connections.
|
| |
| int | ct_security_parameters_add_alpn (ct_security_parameters_t *sec, const char *alpn) |
| | Add an ALPN protocol identifier to the list of supported ALPNs for TLS connections.
|
| |
| int | ct_security_parameters_clear_alpn (ct_security_parameters_t *sec) |
| | Free and clear all configured ALPN protocol identifiers from the security parameters.
|
| |
| int | ct_security_parameters_set_session_ticket_encryption_key (ct_security_parameters_t *sec, const uint8_t *key, size_t key_len) |
| | Set the session ticket encryption key for QUIC session resumption.
|
| |
| ct_security_parameters_t * | ct_security_parameters_new (void) |
| | Allocate a new security parameters object on the heap.
|
| |
| void | ct_security_parameters_free (ct_security_parameters_t *security_parameters) |
| | Free resources in security parameters including the structure itself.
|
| |
| const char * | ct_security_parameters_get_ticket_store_path (const ct_security_parameters_t *sec) |
| |
| const char * | ct_security_parameters_get_server_name_identification (const ct_security_parameters_t *sec) |
| |
| size_t | ct_security_parameters_get_server_certificate_count (const ct_security_parameters_t *sec) |
| |
| const char * | ct_security_parameters_get_server_certificate_file (const ct_security_parameters_t *sec, size_t index) |
| |
| const char * | ct_security_parameters_get_server_certificate_key_file (const ct_security_parameters_t *sec, size_t index) |
| |
| size_t | ct_security_parameters_get_client_certificate_count (const ct_security_parameters_t *sec) |
| |
| const char * | ct_security_parameters_get_client_certificate_file (const ct_security_parameters_t *sec, size_t index) |
| |
| const char * | ct_security_parameters_get_client_certificate_key_file (const ct_security_parameters_t *sec, size_t index) |
| |
| const char *const * | ct_security_parameters_get_alpns (const ct_security_parameters_t *sec, size_t *num_alpns) |
| | Get the configured ALPN protocol identifiers.
|
| |
| const uint8_t * | ct_security_parameters_get_session_ticket_encryption_key (const ct_security_parameters_t *sec, size_t *key_len) |
| | Get the session ticket encryption key.
|
| |
| ct_transport_properties_t * | ct_transport_properties_new (void) |
| | Create a new transport properties object with default values.
|
| |
| void | ct_transport_properties_free (ct_transport_properties_t *props) |
| | Free a transport properties object.
|
| |
| ct_local_endpoint_t * | ct_local_endpoint_new (void) |
| | Create a new heap-allocated local endpoint.
|
| |
| int | ct_local_endpoint_with_interface (ct_local_endpoint_t *local_endpoint, const char *interface_name) |
| | Set the network interface for a local endpoint.
|
| |
| void | ct_local_endpoint_with_port (ct_local_endpoint_t *local_endpoint, uint16_t port) |
| | Set the port number for a local endpoint.
|
| |
| int | ct_local_endpoint_with_service (ct_local_endpoint_t *local_endpoint, const char *service) |
| | Set the service name for a local endpoint.
|
| |
| int | ct_local_endpoint_with_ipv4 (ct_local_endpoint_t *local_endpoint, in_addr_t ipv4_addr) |
| | Set the IPv4 address for a local endpoint.
|
| |
| int | ct_local_endpoint_with_ipv6 (ct_local_endpoint_t *local_endpoint, struct in6_addr ipv6_addr) |
| | Set the IPv6 address for a local endpoint.
|
| |
| int | ct_local_endpoint_from_sockaddr (ct_local_endpoint_t *local_endpoint, const struct sockaddr_storage *addr) |
| | Initialize a local endpoint from a sockaddr structure.
|
| |
| void | ct_local_endpoint_free (ct_local_endpoint_t *local_endpoint) |
| | Free all resources in a local endpoint including the structure itself.
|
| |
| ct_local_endpoint_t * | ct_local_endpoint_deep_copy (const ct_local_endpoint_t *local_endpoint) |
| | Create a heap-allocated copy of a local endpoint.
|
| |
| const char * | ct_local_endpoint_get_service (const ct_local_endpoint_t *local_endpoint) |
| | Get the service for a local endpoint.
|
| |
| uint16_t | ct_local_endpoint_get_resolved_port (const ct_local_endpoint_t *local_endpoint) |
| | Get the resolved port for a local endpoint after binding.
|
| |
| ct_remote_endpoint_t * | ct_remote_endpoint_new (void) |
| | Create a new heap-allocated remote endpoint.
|
| |
| int | ct_remote_endpoint_with_hostname (ct_remote_endpoint_t *remote_endpoint, const char *hostname) |
| | Set the hostname for a remote endpoint.
|
| |
| void | ct_remote_endpoint_with_port (ct_remote_endpoint_t *remote_endpoint, uint16_t port) |
| | Set the port number for a remote endpoint.
|
| |
| int | ct_remote_endpoint_with_service (ct_remote_endpoint_t *remote_endpoint, const char *service) |
| | Set the service name for a remote endpoint.
|
| |
| void | ct_remote_endpoint_free (ct_remote_endpoint_t *remote_endpoint) |
| | Free all resources in a remote endpoint including the structure itself.
|
| |
| int | ct_remote_endpoint_from_sockaddr (ct_remote_endpoint_t *remote_endpoint, const struct sockaddr_storage *addr) |
| | Initialize a remote endpoint from a sockaddr structure.
|
| |
| ct_remote_endpoint_t * | ct_remote_endpoint_deep_copy (const ct_remote_endpoint_t *remote_endpoint) |
| | Create a heap-allocated copy of a remote endpoint.
|
| |
| int | ct_remote_endpoint_with_ipv4 (ct_remote_endpoint_t *remote_endpoint, in_addr_t ipv4_addr) |
| | Set the IPv4 address for a remote endpoint.
|
| |
| int | ct_remote_endpoint_with_ipv6 (ct_remote_endpoint_t *remote_endpoint, struct in6_addr ipv6_addr) |
| | Set the IPv6 address for a remote endpoint.
|
| |
| const char * | ct_remote_endpoint_get_service (const ct_remote_endpoint_t *remote_endpoint) |
| | Get the service for a remote endpoint.
|
| |
| void | ct_message_free (ct_message_t *message) |
| | Free all resources in a message including the structure.
|
| |
| ct_message_t * | ct_message_new (void) |
| | Allocate a new message on the heap.
|
| |
| ct_message_t * | ct_message_new_with_content (const char *content, size_t length) |
| | Allocate a new message with content.
|
| |
| size_t | ct_message_get_length (const ct_message_t *message) |
| | Get the length of a message.
|
| |
| ct_message_t * | ct_message_deep_copy (const ct_message_t *message) |
| | Create a deep copy of a message, including its content.
|
| |
| const char * | ct_message_get_content (const ct_message_t *message) |
| | Get the content buffer of a message.
|
| |
| void | ct_message_set_content (ct_message_t *message, const void *content, size_t length) |
| | Set the content of a message, replacing any existing content.
|
| |
| ct_message_context_t * | ct_message_context_new (void) |
| | Initialize a message context with default values.
|
| |
| void | ct_message_context_free (ct_message_context_t *message_context) |
| | Free resources in a message context.
|
| |
| const ct_message_properties_t * | ct_message_context_get_message_properties (const ct_message_context_t *message_context) |
| | Get message properties from a message context.
|
| |
| const ct_remote_endpoint_t * | ct_message_context_get_remote_endpoint (const ct_message_context_t *message_context) |
| | Get the remote endpoint from a message context.
|
| |
| const ct_local_endpoint_t * | ct_message_context_get_local_endpoint (const ct_message_context_t *message_context) |
| | Get the local endpoint from a message context.
|
| |
| void * | ct_message_context_get_receive_context (const ct_message_context_t *message_context) |
| | Get the receive context from a message context.
|
| |
| uint64_t | ct_message_context_get_lifetime (const ct_message_context_t *msg_ctx) |
| |
| uint32_t | ct_message_context_get_priority (const ct_message_context_t *msg_ctx) |
| |
| bool | ct_message_context_get_ordered (const ct_message_context_t *msg_ctx) |
| |
| bool | ct_message_context_get_safely_replayable (const ct_message_context_t *msg_ctx) |
| |
| bool | ct_message_context_get_final (const ct_message_context_t *msg_ctx) |
| |
| uint32_t | ct_message_context_get_checksum_len (const ct_message_context_t *msg_ctx) |
| |
| bool | ct_message_context_get_reliable (const ct_message_context_t *msg_ctx) |
| |
| ct_capacity_profile_enum_t | ct_message_context_get_capacity_profile (const ct_message_context_t *msg_ctx) |
| |
| bool | ct_message_context_get_no_fragmentation (const ct_message_context_t *msg_ctx) |
| |
| bool | ct_message_context_get_no_segmentation (const ct_message_context_t *msg_ctx) |
| |
| void | ct_message_context_set_lifetime (ct_message_context_t *msg_ctx, uint64_t val) |
| |
| void | ct_message_context_set_priority (ct_message_context_t *msg_ctx, uint32_t val) |
| |
| void | ct_message_context_set_ordered (ct_message_context_t *msg_ctx, bool val) |
| |
| void | ct_message_context_set_safely_replayable (ct_message_context_t *msg_ctx, bool val) |
| |
| void | ct_message_context_set_final (ct_message_context_t *msg_ctx, bool val) |
| |
| void | ct_message_context_set_checksum_len (ct_message_context_t *msg_ctx, uint32_t val) |
| |
| void | ct_message_context_set_reliable (ct_message_context_t *msg_ctx, bool val) |
| |
| void | ct_message_context_set_capacity_profile (ct_message_context_t *msg_ctx, ct_capacity_profile_enum_t val) |
| |
| void | ct_message_context_set_no_fragmentation (ct_message_context_t *msg_ctx, bool val) |
| |
| void | ct_message_context_set_no_segmentation (ct_message_context_t *msg_ctx, bool val) |
| |
| ct_preconnection_t * | ct_preconnection_new (const ct_local_endpoint_t *const *local_endpoints, size_t num_local_endpoints, const ct_remote_endpoint_t *const *remote_endpoints, size_t num_remote_endpoints, const ct_transport_properties_t *transport_properties, const ct_security_parameters_t *security_parameters) |
| | Create a new preconnection with transport properties and endpoints.
|
| |
| void | ct_preconnection_free (ct_preconnection_t *preconnection) |
| | Free a preconnection object.
|
| |
| int | ct_preconnection_set_framer (ct_preconnection_t *preconnection, const ct_framer_impl_t *framer_impl) |
| | Set a message framer for the preconnection.
|
| |
| int | ct_preconnection_initiate (const ct_preconnection_t *preconnection, const ct_connection_callbacks_t *connection_callbacks) |
| | Initiate a connection.
|
| |
| int | ct_preconnection_initiate_with_send (const ct_preconnection_t *preconnection, const ct_connection_callbacks_t *connection_callbacks, const ct_message_t *message, const ct_message_context_t *message_context) |
| | Initiate a connection and send a message immediately upon establishment.
|
| |
| int | ct_preconnection_listen (const ct_preconnection_t *preconnection, const ct_listener_callbacks_t *listener_callbacks, const ct_connection_callbacks_t *connection_callbacks) |
| | Start listening for incoming connections using the configured Preconnection.
|
| |
| int | ct_send_message (ct_connection_t *connection, const ct_message_t *message) |
| | Send a message over a connection with default properties.
|
| |
| int | ct_send_message_full (ct_connection_t *connection, const ct_message_t *message, const ct_message_context_t *message_context) |
| | Send a message with custom message context and properties.
|
| |
| int | ct_receive_message (ct_connection_t *connection, const ct_receive_callbacks_t *receive_callbacks) |
| | Register callbacks to receive messages on a connection.
|
| |
| const ct_transport_properties_t * | ct_connection_get_transport_properties (const ct_connection_t *connection) |
| | Get shared connection properties for a connection.
|
| |
| uint8_t | ct_connection_get_priority (const ct_connection_t *connection) |
| | Get relative priority when compared to other connections in the same group.
|
| |
| int | ct_connection_set_priority (ct_connection_t *connection, uint8_t priority) |
| | Set relative priority for a connection compared to other connections in the same group.
|
| |
| void * | ct_connection_get_callback_context (const ct_connection_t *connection) |
| | Get the connection's callback context.
|
| |
| const char * | ct_connection_get_uuid (const ct_connection_t *connection) |
| | Get the UUID of a connection.
|
| |
| const char * | ct_connection_get_protocol_name (const ct_connection_t *connection) |
| | Get the name of the underlying protocol.
|
| |
| const ct_remote_endpoint_t * | ct_connection_get_active_remote_endpoint (const ct_connection_t *connection) |
| | Get the currently active remote endpoint for the connection.
|
| |
| const ct_local_endpoint_t * | ct_connection_get_active_local_endpoint (const ct_connection_t *connection) |
| | Get the currently active local endpoint.
|
| |
| ct_connection_state_enum_t | ct_connection_get_state (const ct_connection_t *connection) |
| | Get the current state of a connection.
|
| |
| bool | ct_connection_is_closed (const ct_connection_t *connection) |
| | Check if a connection's state is CT_CONN_STATE_CLOSED.
|
| |
| bool | ct_connection_is_established (const ct_connection_t *connection) |
| | Check if a connection's state is CT_CONN_STATE_ESTABLISHED.
|
| |
| bool | ct_connection_is_establishing (const ct_connection_t *connection) |
| | Check if a connection's state is CT_CONN_STATE_ESTABLISHING.
|
| |
| bool | ct_connection_is_closing (const ct_connection_t *connection) |
| | Check if a connection's state is CT_CONN_STATE_CLOSING.
|
| |
| bool | ct_connection_is_closed_or_closing (const ct_connection_t *connection) |
| | Check if a connection's state is CT_CONN_STATE_CLOSED or CT_CONN_STATE_CLOSING.
|
| |
| bool | ct_connection_is_client (const ct_connection_t *connection) |
| | Check if a connection is a client connection.
|
| |
| bool | ct_connection_is_server (const ct_connection_t *connection) |
| | Check if a connection is a server connection.
|
| |
| bool | ct_connection_can_send (const ct_connection_t *connection) |
| | Check the value of the canSend connection property.
|
| |
| bool | ct_connection_can_receive (const ct_connection_t *connection) |
| | Check the value of the canReceive connection property.
|
| |
| void | ct_connection_free (ct_connection_t *connection) |
| | Free resources in a connection.
|
| |
| void | ct_connection_close (ct_connection_t *connection) |
| | Close a connection gracefully.
|
| |
| void | ct_connection_abort (ct_connection_t *connection) |
| | Forcefully abort a connection without graceful shutdown.
|
| |
| int | ct_connection_clone_full (const ct_connection_t *source_connection, const ct_framer_impl_t *framer, const ct_transport_properties_t *connection_properties) |
| | Clone a connection to create a new connection in the same connection group.
|
| |
| int | ct_connection_clone (ct_connection_t *source_connection) |
| | Clone a connection with only mandatory parameters.
|
| |
| size_t | ct_connection_get_total_num_grouped_connections (const ct_connection_t *connection) |
| | Get the total number of connections in a connection group (including closed ones).
|
| |
| size_t | ct_connection_get_num_open_grouped_connections (const ct_connection_t *connection) |
| | Get the number of open connections in a connection group.
|
| |
| void | ct_connection_close_group (ct_connection_t *connection) |
| | Close all connections in the same connection group gracefully.
|
| |
| void | ct_connection_abort_group (ct_connection_t *connection) |
| | Forcefully abort all connections in the same connection group.
|
| |
| ct_protocol_enum_t | ct_connection_get_transport_protocol (const ct_connection_t *connection) |
| | Get the transport protocol used by a connection.
|
| |
| bool | ct_connection_sent_early_data (const ct_connection_t *connection) |
| | Check if a connection has sent early data (e.g., 0-RTT).
|
| |