NCBI C++ ToolKit
Classes | Macros | Typedefs | Enumerations | Functions
ncbi_server_info.h File Reference
#include <connect/ncbi_connutil.h>
#include <connect/ncbi_ipv6.h>
+ Include dependency graph for ncbi_server_info.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  SSERV_NcbidInfo
 
struct  SSERV_StandaloneInfo
 
struct  SSERV_HttpInfo
 
struct  SSERV_FirewallInfo
 
struct  SSERV_DnsInfo
 
union  USERV_Info
 
struct  SSERV_Info
 

Macros

#define SERV_DEFAULT_ALGO   eSERV_Regular
 
#define SERV_MINIMAL_RATE   0.001
 
#define SERV_MAXIMAL_RATE   100000.0
 
#define SERV_MINIMAL_BONUS   0.01
 
#define SERV_MAXIMAL_BONUS   100.0
 
#define SERV_NCBID_ARGS(ui)   ((char*)(ui) + (ui)->args)
 
#define SERV_HTTP_PATH(ui)   ((char*)(ui) + (ui)->path)
 
#define SERV_HTTP_ARGS(ui)   ((char*)(ui) + (ui)->args)
 

Typedefs

typedef unsigned char TSERV_Algo
 
typedef unsigned char TSERV_Mode
 
typedef unsigned char TSERV_Site
 

Enumerations

enum  ESERV_Type {
  fSERV_Ncbid = 0x01 , fSERV_Standalone = 0x02 , fSERV_HttpGet = 0x04 , fSERV_HttpPost = 0x08 ,
  fSERV_Http = fSERV_HttpGet | fSERV_HttpPost , fSERV_Firewall = 0x10 , fSERV_Dns = 0x20
}
 
enum  ESERV_Algo { eSERV_Regular = 0 , eSERV_Blast = 1 }
 
enum  ESERV_Mode { fSERV_Stateful = 1 , fSERV_Secure = 2 }
 
enum  ESERV_Site { fSERV_Local = 1 , fSERV_Private = 2 , fSERV_Interzone = 4 , fSERV_ZoneMask = 0xF0 }
 

Functions

const char * SERV_TypeStr (ESERV_Type type)
 
const char * SERV_ReadType (const char *str, ESERV_Type *type)
 
SSERV_InfoSERV_CreateNcbidInfo (unsigned int host, unsigned short port, const char *args)
 
SSERV_InfoSERV_CreateStandaloneInfo (unsigned int host, unsigned short port)
 
SSERV_InfoSERV_CreateHttpInfo (ESERV_Type type, unsigned int host, unsigned short port, const char *path, const char *args)
 
SSERV_InfoSERV_CreateFirewallInfo (unsigned int host, unsigned short port, ESERV_Type type)
 
SSERV_InfoSERV_CreateDnsInfo (unsigned int host)
 
char * SERV_WriteInfo (const SSERV_Info *info)
 
SSERV_InfoSERV_ReadInfo (const char *info_str)
 
SSERV_InfoSERV_CopyInfo (const SSERV_Info *info)
 
size_t SERV_SizeOfInfo (const SSERV_Info *info)
 
int SERV_EqualInfo (const SSERV_Info *info1, const SSERV_Info *info2)
 
Modified on Mon May 27 04:36:57 2024 by modify_doxy.py rev. 669887