Main Page
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
aerospike
as_lookup.h
Go to the documentation of this file.
1
/*
2
* Copyright 2008-2015 Aerospike, Inc.
3
*
4
* Portions may be licensed to Aerospike, Inc. under one or more contributor
5
* license agreements.
6
*
7
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
8
* use this file except in compliance with the License. You may obtain a copy of
9
* the License at http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14
* License for the specific language governing permissions and limitations under
15
* the License.
16
*/
17
#pragma once
18
19
#include <
aerospike/as_cluster.h
>
20
#include <
aerospike/as_vector.h
>
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
/******************************************************************************
27
* FUNCTIONS
28
******************************************************************************/
29
30
/**
31
* @private
32
* Lookup address(es) given hostname. Addresses are returned in the sockaddr_in vector
33
* if it's not null. The addition to the vector will be done via a unique add just in
34
* case there are duplicates. Return zero on success.
35
*/
36
as_status
37
as_lookup
(
as_cluster
* cluster,
as_error
* err,
char
* hostname, uint16_t port,
as_vector
*
/*<struct sockaddr_in>*/
addresses);
38
39
#ifdef __cplusplus
40
}
// end extern "C"
41
#endif
as_error
Definition:
as_error.h:96
as_status
as_status
Definition:
as_status.h:30
as_lookup
as_status as_lookup(as_cluster *cluster, as_error *err, char *hostname, uint16_t port, as_vector *addresses)
as_cluster.h
as_vector
Definition:
as_vector.h:35
as_cluster
Definition:
as_cluster.h:103
as_vector.h