All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Functions
as_lookup.h File Reference
#include <aerospike/as_address.h>
#include <aerospike/as_error.h>
#include <aerospike/as_status.h>
#include <netdb.h>
+ Include dependency graph for as_lookup.h:

Go to the source code of this file.

Data Structures

struct  as_address_iterator


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)

Function Documentation

static void as_lookup_end ( as_address_iterator iter)

Release memory associated with address iterator.

Definition at line 90 of file as_lookup.h.

References as_address_iterator::addresses.

as_status as_lookup_host ( as_address_iterator iter,
as_error err,
const char *  hostname,
uint16_t  port 

Lookup hostname and initialize address iterator.

static bool as_lookup_next ( as_address_iterator iter,
struct sockaddr **  addr 

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.

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 

Lookup and validate node.