Loading...
Searching...
No Matches
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
 

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)
 

Function Documentation

◆ as_lookup_end()

static void as_lookup_end ( as_address_iterator * iter)
inlinestaticprivate

Release memory associated with address iterator.

Definition at line 90 of file as_lookup.h.

References as_address_iterator::addresses.

◆ as_lookup_host()

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

Lookup hostname and initialize address iterator.

◆ as_lookup_next()

static bool as_lookup_next ( as_address_iterator * iter,
struct sockaddr ** addr )
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.

◆ as_lookup_node()

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 )
private

Lookup and validate node.