NCBI C++ ToolKit
Classes | Macros | Typedefs | Enumerations | Functions
ncbi_dblb.h File Reference
#include <connect/ncbi_connutil.h>
+ Include dependency graph for ncbi_dblb.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  SDBLB_Preference
 
struct  SDBLB_ConnPoint
 

Macros

#define DBLB_GetServerNameEx   DBLB_GetServerName
 

Typedefs

typedef unsigned int TDBLB_Flags
 

Enumerations

enum  EDBLB_Status {
  eDBLB_Success = 0 , eDBLB_BadName , eDBLB_NotFound , eDBLB_NoDNSEntry ,
  eDBLB_ServiceDown
}
 
enum  EDBLB_Flags { fDBLB_None = 0 , fDBLB_AllowFallbackToStandby = 1 }
 

Functions

const char * DBLB_GetServerName (const char *lb_name, char *server_name_buf, size_t server_name_buflen, const char *const skip_servers[], char *errmsg_buf, size_t errmsg_buflen)
 
const char * DBLB_GetServer (const char *lb_name, TDBLB_Flags flags, const SDBLB_Preference *preference, const char *const skip_servers[], SDBLB_ConnPoint *conn_point, char *server_name_buf, size_t server_name_buflen, EDBLB_Status *result)
 
const char * DBLB_StatusStr (EDBLB_Status status)
 

Macro Definition Documentation

◆ DBLB_GetServerNameEx

#define DBLB_GetServerNameEx   DBLB_GetServerName

Definition at line 64 of file ncbi_dblb.h.

Typedef Documentation

◆ TDBLB_Flags

typedef unsigned int TDBLB_Flags

Definition at line 80 of file ncbi_dblb.h.

Enumeration Type Documentation

◆ EDBLB_Flags

Enumerator
fDBLB_None 
fDBLB_AllowFallbackToStandby 

Definition at line 76 of file ncbi_dblb.h.

◆ EDBLB_Status

Enumerator
eDBLB_Success 
eDBLB_BadName 
eDBLB_NotFound 
eDBLB_NoDNSEntry 
eDBLB_ServiceDown 

Definition at line 67 of file ncbi_dblb.h.

Function Documentation

◆ DBLB_GetServer()

const char* DBLB_GetServer ( const char *  lb_name,
TDBLB_Flags  flags,
const SDBLB_Preference preference,
const char *const  skip_servers[],
SDBLB_ConnPoint conn_point,
char *  server_name_buf,
size_t  server_name_buflen,
EDBLB_Status result 
)

◆ DBLB_GetServerName()

const char* DBLB_GetServerName ( const char *  lb_name,
char *  server_name_buf,
size_t  server_name_buflen,
const char *const  skip_servers[],
char *  errmsg_buf,
size_t  errmsg_buflen 
)

Definition at line 45 of file ncbi_dblb.c.

References assert, DBLB_GetServer(), DBLB_StatusStr(), fDBLB_None, result, and strncpy0().

◆ DBLB_StatusStr()

const char* DBLB_StatusStr ( EDBLB_Status  status)

Definition at line 68 of file ncbi_dblb.c.

References i.

Referenced by DBLB_GetServerName().

Modified on Sat May 25 14:18:12 2024 by modify_doxy.py rev. 669887