![]() |
#include <aerospike/as_admin.h>
#include <aerospike/as_cluster.h>
#include <aerospike/as_listener.h>
#include <aerospike/as_queue.h>
#include <aerospike/as_proto.h>
#include <aerospike/as_socket.h>
#include <citrusleaf/cf_ll.h>
#include <pthread.h>
#include <stdint.h>
#include <stdbool.h>
#include <unistd.h>
Go to the source code of this file.
Data Structures | |
struct | as_async_connection |
struct | as_event_command |
struct | as_event_connection |
struct | as_event_executor |
struct | as_queued_pipe_cb |
Macros | |
#define | AS_ASYNC_AUTH_RETURN_CODE 1 |
#define | AS_ASYNC_STATE_AUTH_READ_BODY 8 |
#define | AS_ASYNC_STATE_AUTH_READ_HEADER 4 |
#define | AS_ASYNC_STATE_AUTH_WRITE 2 |
#define | AS_ASYNC_STATE_READ_BODY 64 |
#define | AS_ASYNC_STATE_READ_HEADER 32 |
#define | AS_ASYNC_STATE_TLS_CONNECT 1 |
#define | AS_ASYNC_STATE_UNREGISTERED 0 |
#define | AS_ASYNC_STATE_WRITE 16 |
#define | AS_EVENT_CONNECTION_COMPLETE 0 |
#define | AS_EVENT_CONNECTION_ERROR 2 |
#define | AS_EVENT_CONNECTION_PENDING 1 |
#define | AS_EVENT_QUEUE_INITIAL_CAPACITY 256 |
Typedefs | |
typedef void(* | as_event_executor_complete_fn )(struct as_event_executor *executor, as_error *err) |
typedef void(* | as_event_executor_destroy_fn )(struct as_event_executor *executor) |
typedef bool(* | as_event_parse_results_fn )(struct as_event_command *cmd) |
Enumerations | |
enum | as_connection_status { AS_CONNECTION_FROM_POOL = 0, AS_CONNECTION_NEW = 1, AS_CONNECTION_TOO_MANY = 2 } |
#define AS_ASYNC_AUTH_RETURN_CODE 1 |
Definition at line 55 of file as_event_internal.h.
#define AS_ASYNC_STATE_AUTH_READ_BODY 8 |
Definition at line 50 of file as_event_internal.h.
#define AS_ASYNC_STATE_AUTH_READ_HEADER 4 |
Definition at line 49 of file as_event_internal.h.
#define AS_ASYNC_STATE_AUTH_WRITE 2 |
Definition at line 48 of file as_event_internal.h.
#define AS_ASYNC_STATE_READ_BODY 64 |
Definition at line 53 of file as_event_internal.h.
#define AS_ASYNC_STATE_READ_HEADER 32 |
Definition at line 52 of file as_event_internal.h.
#define AS_ASYNC_STATE_TLS_CONNECT 1 |
Definition at line 47 of file as_event_internal.h.
#define AS_ASYNC_STATE_UNREGISTERED 0 |
Definition at line 46 of file as_event_internal.h.
#define AS_ASYNC_STATE_WRITE 16 |
Definition at line 51 of file as_event_internal.h.
#define AS_EVENT_CONNECTION_COMPLETE 0 |
Definition at line 57 of file as_event_internal.h.
#define AS_EVENT_CONNECTION_ERROR 2 |
Definition at line 59 of file as_event_internal.h.
#define AS_EVENT_CONNECTION_PENDING 1 |
Definition at line 58 of file as_event_internal.h.
#define AS_EVENT_QUEUE_INITIAL_CAPACITY 256 |
Definition at line 61 of file as_event_internal.h.
typedef void(* as_event_executor_complete_fn)(struct as_event_executor *executor, as_error *err) |
Definition at line 94 of file as_event_internal.h.
typedef void(* as_event_executor_destroy_fn)(struct as_event_executor *executor) |
Definition at line 95 of file as_event_internal.h.
typedef bool(* as_event_parse_results_fn)(struct as_event_command *cmd) |
Definition at line 93 of file as_event_internal.h.
enum as_connection_status |
Enumerator | |
---|---|
AS_CONNECTION_FROM_POOL | |
AS_CONNECTION_NEW | |
AS_CONNECTION_TOO_MANY |
Definition at line 138 of file as_event_internal.h.
|
inlinestatic |
Definition at line 337 of file as_event_internal.h.
References as_event_loop_get().
void as_event_close_connection | ( | as_event_connection * | conn) |
void as_event_command_begin | ( | as_event_command * | cmd) |
as_status as_event_command_execute | ( | as_event_command * | cmd, |
as_error * | err | ||
) |
|
inlinestatic |
Definition at line 320 of file as_event_internal.h.
References AEROSPIKE_ERR_TIMEOUT, as_error_set_message, as_error::as_error_string(), as_event_command_begin(), as_event_error_callback(), and as_event_command::timeout_ms.
void as_event_command_free | ( | as_event_command * | cmd) |
bool as_event_command_parse_header | ( | as_event_command * | cmd) |
bool as_event_command_parse_result | ( | as_event_command * | cmd) |
bool as_event_command_parse_success_failure | ( | as_event_command * | cmd) |
|
inlinestatic |
Definition at line 309 of file as_event_internal.h.
bool as_event_create_loop | ( | as_event_loop * | event_loop) |
|
inlinestatic |
Definition at line 391 of file as_event_internal.h.
References as_event_decr_connection(), as_node::async_conn_qs, as_event_command::cluster, as_event_command::event_loop, as_event_loop::index, as_event_command::node, as_node::pipe_conn_qs, and as_event_command::pipe_listener.
|
inlinestatic |
Definition at line 384 of file as_event_internal.h.
References as_queue_decr_total(), and as_cluster::async_conn_count.
void as_event_error_callback | ( | as_event_command * | cmd, |
as_error * | err | ||
) |
void as_event_executor_cancel | ( | as_event_executor * | executor, |
int | queued_count | ||
) |
void as_event_executor_complete | ( | as_event_command * | cmd) |
as_connection_status as_event_get_connection | ( | as_event_command * | cmd) |
void as_event_node_destroy | ( | as_node * | node) |
void as_event_register_external_loop | ( | as_event_loop * | event_loop) |
|
inlinestatic |
Definition at line 376 of file as_event_internal.h.
References as_event_close_connection(), as_queue_decr_total(), and as_cluster::async_conn_count.
void as_event_response_error | ( | as_event_command * | cmd, |
as_error * | err | ||
) |
bool as_event_send | ( | as_event_command * | cmd) |
bool as_event_send_close_loop | ( | as_event_loop * | event_loop) |
|
inlinestatic |
Definition at line 364 of file as_event_internal.h.
References AS_ASYNC_STATE_AUTH_READ_BODY, as_proto_swap_from_be(), as_event_command::auth_len, as_event_command::buf, as_event_command::len, as_event_command::pos, proto, and as_event_command::state.
|
inlinestatic |
Definition at line 354 of file as_event_internal.h.
References AS_ASYNC_STATE_AUTH_READ_HEADER, as_event_command::auth_len, as_event_command::len, as_event_command::pos, and as_event_command::state.
|
inlinestatic |
Definition at line 344 of file as_event_internal.h.
References as_authenticate_set(), as_event_command::auth_len, as_event_command::buf, as_event_command::cluster, as_event_command::len, as_cluster::password, as_event_command::pos, and as_cluster::user.
void as_event_socket_error | ( | as_event_command * | cmd, |
as_error * | err | ||
) |
|
inlinestatic |
Definition at line 299 of file as_event_internal.h.
|
inlinestatic |
Definition at line 304 of file as_event_internal.h.
void as_event_timeout | ( | as_event_command * | cmd) |
|
inlinestatic |
Definition at line 293 of file as_event_internal.h.