20 #include <citrusleaf/cf_queue.h>
21 #include <netinet/in.h>
31 #define AS_NODE_NAME_MAX_SIZE 20
40 typedef struct as_address_s {
44 struct sockaddr_in addr;
49 char name[INET_ADDRSTRLEN];
57 typedef struct as_node_s {
143 typedef struct as_friend_s {
148 char name[INET_ADDRSTRLEN];
172 as_node_create(
struct as_cluster_s* cluster,
const char* name,
struct sockaddr_in* addr);
189 ck_pr_store_8(&node->
active,
false);
213 ck_pr_dec_32_zero(&node->
ref_count, &destroy);
231 static inline struct sockaddr_in*
235 return &address->
addr;
static void as_node_deactivate(as_node *node)
void as_node_destroy(as_node *node)
struct as_cluster_s * cluster
static void * as_vector_get(as_vector *vector, uint32_t index)
#define AS_NODE_NAME_MAX_SIZE
static struct sockaddr_in * as_node_get_address(as_node *node)
void as_node_put_connection(as_node *node, int fd)
int as_node_get_connection(as_node *node, int *fd)
as_node * as_node_create(struct as_cluster_s *cluster, const char *name, struct sockaddr_in *addr)
uint32_t partition_generation
void as_node_add_address(as_node *node, struct sockaddr_in *addr)
static void as_node_release(as_node *node)
static as_address * as_node_get_address_full(as_node *node)
static void as_node_reserve(as_node *node)