NCBI C++ ToolKit
Classes | Functions | Variables
ncbi_local.c File Reference
#include "ncbi_ansi_ext.h"
#include "ncbi_comm.h"
#include "ncbi_lb.h"
#include "ncbi_local.h"
#include "ncbi_priv.h"
#include <stdlib.h>
+ Include dependency graph for ncbi_local.c:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  SLOCAL_Data
 

Functions

static SSERV_Infos_GetNextInfo (SERV_ITER, HOST_INFO *)
 
static void s_Reset (SERV_ITER)
 
static void s_Close (SERV_ITER)
 
static int s_AddService (const SSERV_Info *info, struct SLOCAL_Data *data)
 
static int s_LoadSingleService (const char *name, SERV_ITER iter)
 
static int s_LoadServices (SERV_ITER iter)
 
static int s_Sort (const void *p1, const void *p2)
 
static SLB_Candidates_GetCandidate (void *user_data, size_t i)
 
const SSERV_VTableSERV_LOCAL_Open (SERV_ITER iter, SSERV_Info **info)
 

Variables

static const SSERV_VTable s_op
 

Function Documentation

◆ s_AddService()

static int s_AddService ( const SSERV_Info info,
struct SLOCAL_Data data 
)
static

◆ s_Close()

static void s_Close ( SERV_ITER  iter)
static

◆ s_GetCandidate()

static SLB_Candidate* s_GetCandidate ( void *  user_data,
size_t  i 
)
static

Definition at line 215 of file ncbi_local.c.

References SLOCAL_Data::cand, i, and SLOCAL_Data::i_cand.

Referenced by s_GetNextInfo().

◆ s_GetNextInfo()

static SSERV_Info * s_GetNextInfo ( SERV_ITER  iter,
HOST_INFO host_info 
)
static

◆ s_LoadServices()

static int s_LoadServices ( SERV_ITER  iter)
static

◆ s_LoadSingleService()

static int s_LoadSingleService ( const char *  name,
SERV_ITER  iter 
)
static

◆ s_Reset()

static void s_Reset ( SERV_ITER  iter)
static

◆ s_Sort()

static int s_Sort ( const void *  p1,
const void *  p2 
)
static

Definition at line 197 of file ncbi_local.c.

References fSERV_Dns, SLB_Candidate::info, int, and SSERV_Info::type.

Referenced by s_GetNextInfo(), and SERV_LOCAL_Open().

◆ SERV_LOCAL_Open()

const SSERV_VTable* SERV_LOCAL_Open ( SERV_ITER  iter,
SSERV_Info **  info 
)

Variable Documentation

◆ s_op

const SSERV_VTable s_op
static
Initial value:
= {
s_GetNextInfo, 0, 0, s_Reset, s_Close, "LOCAL"
}
static void s_Close(SERV_ITER)
Definition: ncbi_local.c:354
static void s_Reset(SERV_ITER)
Definition: ncbi_local.c:339
static SSERV_Info * s_GetNextInfo(SERV_ITER, HOST_INFO *)
Definition: ncbi_local.c:222

Definition at line 49 of file ncbi_local.c.

Referenced by SERV_LOCAL_Open().

Modified on Thu Feb 29 12:18:55 2024 by modify_doxy.py rev. 669887