25 #include <citrusleaf/cf_queue.h>
26 #include <netinet/in.h>
36 #define AS_NODE_NAME_MAX_SIZE 20
45 typedef struct as_address_s {
49 struct sockaddr_in addr;
54 char name[INET_ADDRSTRLEN];
62 typedef struct as_node_s {
142 typedef struct as_friend_s {
147 char name[INET_ADDRSTRLEN];
171 as_node_create(
struct as_cluster_s* cluster,
const char* name,
struct sockaddr_in* addr);
188 ck_pr_store_8(&node->
active,
false);
212 ck_pr_dec_32_zero(&node->
ref_count, &destroy);
230 static inline struct sockaddr_in*
234 return &address->
addr;
int as_node_fd_get(as_node *node)
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)
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)
void as_node_fd_put(as_node *node, int fd)
static void as_node_reserve(as_node *node)