Loading...
Searching...
No Matches
Data Structures | Functions
as_host.h File Reference
#include <aerospike/as_vector.h>
#include <citrusleaf/alloc.h>
+ Include dependency graph for as_host.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  as_host
 

Functions

static void as_host_copy (const as_host *src, as_host *trg)
 
static void as_host_copy_fields (as_host *trg, const char *hostname, const char *tls_name, uint16_t port)
 
static void as_host_destroy (as_host *host)
 
bool as_host_parse_addresses (char *str, as_vector *hosts)
 

Function Documentation

◆ as_host_copy()

static void as_host_copy ( const as_host * src,
as_host * trg )
inlinestatic

Deep copy host.

Definition at line 66 of file as_host.h.

References as_host::name, as_host::port, and as_host::tls_name.

◆ as_host_copy_fields()

static void as_host_copy_fields ( as_host * trg,
const char * hostname,
const char * tls_name,
uint16_t port )
inlinestatic

Deep copy host from fields.

Definition at line 77 of file as_host.h.

References as_host::name, as_host::port, and as_host::tls_name.

◆ as_host_destroy()

static void as_host_destroy ( as_host * host)
inlinestatic

Release memory associated with host.

Definition at line 88 of file as_host.h.

References as_host::name, and as_host::tls_name.

◆ as_host_parse_addresses()

bool as_host_parse_addresses ( char * str,
as_vector * hosts )

Parse hosts from format: address1:port1,... Warning: Destructive parse. String is modified. Host name pointers are only in scope of string.