All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Functions
as_lookup.h File Reference
#include <aerospike/as_cluster.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, in_port_t port)
 
static bool as_lookup_next (as_address_iterator *iter, struct sockaddr **addr)
 
as_status as_lookup_node (as_cluster *cluster, as_error *err, const char *tls_name, struct sockaddr *addr, as_node_info *node_info)
 

Function Documentation

static void as_lookup_end ( as_address_iterator iter)
inlinestaticprivate

Release memory associated with address iterator.

Definition at line 81 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,
in_port_t  port 
)
private

Lookup hostname and initialize address iterator.

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 57 of file as_lookup.h.

References as_address_iterator::current, and as_address_iterator::port_be.

as_status as_lookup_node ( as_cluster cluster,
as_error err,
const char *  tls_name,
struct sockaddr *  addr,
as_node_info node_info 
)
private

Lookup and validate node.