![]() |
#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_commander |
struct | as_event_connection |
struct | as_event_executor |
struct | as_queued_pipe_cb |
Macros | |
#define | AS_ASYNC_AUTH_RETURN_CODE 1 |
#define | AS_ASYNC_FLAGS_EVENT_RECEIVED 2 |
#define | AS_ASYNC_FLAGS_FREE_BUF 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_executable )(void *udata) |
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 60 of file as_event_internal.h.
#define AS_ASYNC_FLAGS_EVENT_RECEIVED 2 |
Definition at line 58 of file as_event_internal.h.
#define AS_ASYNC_FLAGS_FREE_BUF 1 |
Definition at line 57 of file as_event_internal.h.
#define AS_ASYNC_STATE_AUTH_READ_BODY 8 |
Definition at line 52 of file as_event_internal.h.
#define AS_ASYNC_STATE_AUTH_READ_HEADER 4 |
Definition at line 51 of file as_event_internal.h.
#define AS_ASYNC_STATE_AUTH_WRITE 2 |
Definition at line 50 of file as_event_internal.h.
#define AS_ASYNC_STATE_READ_BODY 64 |
Definition at line 55 of file as_event_internal.h.
#define AS_ASYNC_STATE_READ_HEADER 32 |
Definition at line 54 of file as_event_internal.h.
#define AS_ASYNC_STATE_TLS_CONNECT 1 |
Definition at line 49 of file as_event_internal.h.
#define AS_ASYNC_STATE_UNREGISTERED 0 |
Definition at line 48 of file as_event_internal.h.
#define AS_ASYNC_STATE_WRITE 16 |
Definition at line 53 of file as_event_internal.h.
#define AS_EVENT_CONNECTION_COMPLETE 0 |
Definition at line 62 of file as_event_internal.h.
#define AS_EVENT_CONNECTION_ERROR 2 |
Definition at line 64 of file as_event_internal.h.
#define AS_EVENT_CONNECTION_PENDING 1 |
Definition at line 63 of file as_event_internal.h.
#define AS_EVENT_QUEUE_INITIAL_CAPACITY 256 |
Definition at line 66 of file as_event_internal.h.
typedef void(* as_event_executable)(void *udata) |
Definition at line 102 of file as_event_internal.h.
typedef void(* as_event_executor_complete_fn)(struct as_event_executor *executor, as_error *err) |
Definition at line 104 of file as_event_internal.h.
typedef void(* as_event_executor_destroy_fn)(struct as_event_executor *executor) |
Definition at line 105 of file as_event_internal.h.
typedef bool(* as_event_parse_results_fn)(struct as_event_command *cmd) |
Definition at line 103 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 156 of file as_event_internal.h.
|
inlinestatic |
Definition at line 415 of file as_event_internal.h.
References as_event_loop_get().
void as_event_close_connection | ( | as_event_connection * | conn | ) |
bool as_event_command_begin | ( | as_event_command * | cmd | ) |
as_status as_event_command_execute | ( | as_event_command * | cmd, |
as_error * | err | ||
) |
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 404 of file as_event_internal.h.
bool as_event_create_loop | ( | as_event_loop * | event_loop | ) |
|
inlinestatic |
Definition at line 469 of file as_event_internal.h.
References as_event_decr_connection(), as_node::async_conn_pools, as_event_command::cluster, as_event_command::event_loop, as_event_loop::index, as_event_command::node, as_node::pipe_conn_pools, and as_event_command::pipe_listener.
|
inlinestatic |
Definition at line 462 of file as_event_internal.h.
References as_conn_pool_dec(), and as_cluster::async_conn_count.
void as_event_error_callback | ( | as_event_command * | cmd, |
as_error * | err | ||
) |
bool as_event_execute | ( | as_event_loop * | event_loop, |
as_event_executable | executable, | ||
void * | udata | ||
) |
Schedule execution of function on specified event loop. Command is placed on event loop queue and is never executed directly.
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 454 of file as_event_internal.h.
References as_conn_pool_dec(), as_event_close_connection(), and as_cluster::async_conn_count.
void as_event_response_error | ( | as_event_command * | cmd, |
as_error * | err | ||
) |
|
inlinestatic |
Definition at line 442 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 432 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 422 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.
|
inlinestatic |
Definition at line 389 of file as_event_internal.h.
void as_event_socket_error | ( | as_event_command * | cmd, |
as_error * | err | ||
) |
|
inlinestatic |
Definition at line 394 of file as_event_internal.h.
|
inlinestatic |
Definition at line 399 of file as_event_internal.h.
void as_event_timeout | ( | as_event_command * | cmd | ) |
|
inlinestatic |
Definition at line 383 of file as_event_internal.h.