#include <aerospike/as_vector.h>
#include <citrusleaf/cf_queue.h>
#include <netinet/in.h>
#include "ck_pr.h"
Go to the source code of this file.
#define AS_NODE_NAME_MAX_SIZE 20 |
Maximum size of node name
Definition at line 31 of file as_node.h.
void as_node_add_address |
( |
as_node * |
node, |
|
|
struct sockaddr_in * |
addr |
|
) |
| |
|
private |
Add socket address to node addresses.
as_node* as_node_create |
( |
struct as_cluster_s * |
cluster, |
|
|
const char * |
name, |
|
|
struct sockaddr_in * |
addr |
|
) |
| |
|
private |
static void as_node_deactivate |
( |
as_node * |
node | ) |
|
|
inlinestaticprivate |
void as_node_destroy |
( |
as_node * |
node | ) |
|
|
private |
Close all connections in pool and free resources.
static struct sockaddr_in* as_node_get_address |
( |
as_node * |
node | ) |
|
|
staticprivate |
int as_node_get_connection |
( |
as_node * |
node, |
|
|
int * |
fd |
|
) |
| |
|
private |
Get a connection to the given node from pool and validate. Return 0 on success.
void as_node_put_connection |
( |
as_node * |
node, |
|
|
int |
fd |
|
) |
| |
|
private |
Put connection back into pool.
static void as_node_release |
( |
as_node * |
node | ) |
|
|
inlinestaticprivate |
static void as_node_reserve |
( |
as_node * |
node | ) |
|
|
inlinestaticprivate |