#include <aerospike/as_address.h>
#include <aerospike/as_error.h>
#include <aerospike/as_status.h>
#include <netdb.h>
Go to the source code of this file.
Data Structures | |
struct | as_address_iterator |
Functions | |
static void | as_lookup_end (as_address_iterator *iter) |
as_status | as_lookup_host (as_address_iterator *iter, as_error *err, const char *hostname, uint16_t port) |
static bool | as_lookup_next (as_address_iterator *iter, struct sockaddr **addr) |
as_status | as_lookup_node (struct as_cluster_s *cluster, as_error *err, struct as_host_s *host, struct sockaddr *addr, bool detect_load_balancer, struct as_node_info_s *node_info) |
|
inlinestaticprivate |
Release memory associated with address iterator.
Definition at line 90 of file as_lookup.h.
References as_address_iterator::addresses.
|
private |
Lookup hostname and initialize address iterator.
|
inlinestaticprivate |
Get next socket address with assigned port. Return false when there are no more addresses.
Definition at line 66 of file as_lookup.h.
References as_address_iterator::current, and as_address_iterator::port_be.