NCBI C++ ToolKit
Macros | Functions
ncbi_lbsm.c File Reference
#include "ncbi_ansi_ext.h"
#include "ncbi_lbsm.h"
#include "ncbi_priv.h"
#include <connect/ncbi_socket_unix.h>
#include <errno.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
+ Include dependency graph for ncbi_lbsm.c:

Go to the source code of this file.

Go to the SVN repository for this file.


#define NCBI_USE_ERRCODE_X   Connect_LBSM
#define max(a, b)   ((a) < (b) ? (b) : (a))
#define min(a, b)   ((a) > (b) ? (b) : (a))


const SLBSM_VersionLBSM_GetVersion (HEAP heap)
const char * LBSM_GetConfig (HEAP heap)
static int x_NameMatch (int mask, const char *name, const char *test)
const SLBSM_ServiceLBSM_LookupServiceEx (HEAP heap, const char *name, int mask, const SLBSM_Entry **prev)
const SLBSM_ServiceLBSM_LookupService (HEAP heap, const char *name, int mask, const SLBSM_Service *hint)
const SLBSM_HostLBSM_LookupHost (HEAP heap, unsigned int addr, const SLBSM_Entry *hint)
int LBSM_SubmitPenaltyOrRerate (const char *name, ESERV_Type type, double rate, TNCBI_Time fine, unsigned int host, unsigned short port, const char *path)

Macro Definition Documentation

◆ max

#define max (   a,
)    ((a) < (b) ? (b) : (a))

Definition at line 50 of file ncbi_lbsm.c.

◆ min

#define min (   a,
)    ((a) > (b) ? (b) : (a))

Definition at line 55 of file ncbi_lbsm.c.


#define NCBI_USE_ERRCODE_X   Connect_LBSM

Definition at line 44 of file ncbi_lbsm.c.

Function Documentation

◆ LBSM_GetConfig()

const char* LBSM_GetConfig ( HEAP  heap)

◆ LBSM_GetVersion()

const SLBSM_Version* LBSM_GetVersion ( HEAP  heap)

Definition at line 58 of file ncbi_lbsm.c.

References assert, eLBSM_Version, heap, HEAP_Base(), HEAP_Next(), and SLBSM_Entry::type.

Referenced by s_GetHeapCopy(), and s_VerifyChecksum().

◆ LBSM_LookupHost()

const SLBSM_Host* LBSM_LookupHost ( HEAP  heap,
unsigned int  addr,
const SLBSM_Entry hint 

◆ LBSM_LookupService()

const SLBSM_Service* LBSM_LookupService ( HEAP  heap,
const char *  name,
int  mask,
const SLBSM_Service hint 

◆ LBSM_LookupServiceEx()

const SLBSM_Service* LBSM_LookupServiceEx ( HEAP  heap,
const char *  name,
int  mask,
const SLBSM_Entry **  prev 

◆ LBSM_SubmitPenaltyOrRerate()

int LBSM_SubmitPenaltyOrRerate ( const char *  name,
ESERV_Type  type,
double  rate,
TNCBI_Time  fine,
unsigned int  host,
unsigned short  port,
const char *  path 

◆ x_NameMatch()

static int x_NameMatch ( int  mask,
const char *  name,
const char *  test 

Definition at line 84 of file ncbi_lbsm.c.

References mask, strcasecmp, test(), and UTIL_MatchesMask().

Referenced by LBSM_LookupServiceEx().

Modified on Fri Feb 23 11:48:43 2024 by rev. 669887