NCBI C++ ToolKit
Classes | Macros | Functions | Variables
ncbi_conn_test.cpp File Reference
#include <ncbi_pch.hpp>
#include "ncbi_comm.h"
#include "ncbi_priv.h"
#include "ncbi_servicep.h"
#include <corelib/ncbiutil.hpp>
#include <corelib/stream_utils.hpp>
#include <connect/ncbi_conn_test.hpp>
#include <connect/ncbi_socket.hpp>
#include <iterator>
#include <stdlib.h>
+ Include dependency graph for ncbi_conn_test.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  SAuxData
 
struct  Deleter< SConnNetInfo >
 

Macros

#define HELP_EMAIL
 
#define NCBI_WWW   DEF_CONN_HOST
 
#define NCBI_WWW_BEMD   "www.be-md.ncbi.nlm.nih.gov"
 
#define NCBI_WWW_STVA   "www.st-va.ncbi.nlm.nih.gov"
 
#define NCBI_FWD_BEMD   "130.14.29.112"
 
#define NCBI_FWD_STVA   "165.112.7.12"
 

Functions

static bool operator> (const STimeout *t1, const STimeout &t2)
 
static bool x_Large (const STimeout *t)
 
static SConnNetInfoConnNetInfo_Create (const char *svc_name, EDebugPrintout dbg_printout)
 
static bool x_IsFatalError (int error)
 
static EHTTP_HeaderParse s_AnyHeader (const char *, void *data, int server_error)
 
static EHTTP_HeaderParse s_GoodHeader (const char *, void *data, int server_error)
 
static EHTTP_HeaderParse s_SvcHeader (const char *header, void *data, int server_error)
 
static int s_Adjust (SConnNetInfo *, void *data, unsigned int count)
 
static void s_Cleanup (void *data)
 
static unsigned int ud (time_t one, time_t two)
 
static size_t rnd (size_t minimal, size_t maximal)
 

Variables

static const SIZE_TYPE kParIndent = 4
 
static const char kTest [] = "test"
 
static const char kCanceled [] = "Check canceled"
 
static const char kFWSign []
 

Macro Definition Documentation

◆ HELP_EMAIL

#define HELP_EMAIL
Value:
(m_Email.empty() \
? string("NCBI Help Desk <info@ncbi.nlm.nih.gov>") \
: m_Email)
string
Definition: cgiapp.hpp:687

Definition at line 44 of file ncbi_conn_test.cpp.

◆ NCBI_FWD_BEMD

#define NCBI_FWD_BEMD   "130.14.29.112"

Definition at line 51 of file ncbi_conn_test.cpp.

◆ NCBI_FWD_STVA

#define NCBI_FWD_STVA   "165.112.7.12"

Definition at line 52 of file ncbi_conn_test.cpp.

◆ NCBI_WWW

#define NCBI_WWW   DEF_CONN_HOST

Definition at line 48 of file ncbi_conn_test.cpp.

◆ NCBI_WWW_BEMD

#define NCBI_WWW_BEMD   "www.be-md.ncbi.nlm.nih.gov"

Definition at line 49 of file ncbi_conn_test.cpp.

◆ NCBI_WWW_STVA

#define NCBI_WWW_STVA   "www.st-va.ncbi.nlm.nih.gov"

Definition at line 50 of file ncbi_conn_test.cpp.

Function Documentation

◆ ConnNetInfo_Create()

static SConnNetInfo* ConnNetInfo_Create ( const char *  svc_name,
EDebugPrintout  dbg_printout 
)
static

◆ operator>()

static bool operator> ( const STimeout t1,
const STimeout t2 
)
inlinestatic

Definition at line 67 of file ncbi_conn_test.cpp.

References kMicroSecondsPerSecond, STimeoutTag::sec, and STimeoutTag::usec.

◆ rnd()

static size_t rnd ( size_t  minimal,
size_t  maximal 
)
inlinestatic

◆ s_Adjust()

static int s_Adjust ( SConnNetInfo ,
void *  data,
unsigned int  count 
)
static

◆ s_AnyHeader()

static EHTTP_HeaderParse s_AnyHeader ( const char *  ,
void *  data,
int  server_error 
)
static

◆ s_Cleanup()

static void s_Cleanup ( void *  data)
static

◆ s_GoodHeader()

static EHTTP_HeaderParse s_GoodHeader ( const char *  ,
void *  data,
int  server_error 
)
static

◆ s_SvcHeader()

static EHTTP_HeaderParse s_SvcHeader ( const char *  header,
void *  data,
int  server_error 
)
static

◆ ud()

static unsigned int ud ( time_t  one,
time_t  two 
)
inlinestatic

◆ x_IsFatalError()

static bool x_IsFatalError ( int  error)
inlinestatic

Definition at line 192 of file ncbi_conn_test.cpp.

References true.

Referenced by s_AnyHeader(), and s_SvcHeader().

◆ x_Large()

static bool x_Large ( const STimeout t)
inlinestatic

Variable Documentation

◆ kCanceled

const char kCanceled[] = "Check canceled"
static

◆ kFWSign

const char kFWSign[]
static
Initial value:
=
"NCBI Firewall Daemon: Invalid ticket. Connection closed."

Definition at line 63 of file ncbi_conn_test.cpp.

Referenced by CConnTest::CheckFWConnections(), and CConnTest::StatefulOkay().

◆ kParIndent

const SIZE_TYPE kParIndent = 4
static

Definition at line 58 of file ncbi_conn_test.cpp.

Referenced by CConnTest::PostCheck(), and CConnTest::PreCheck().

◆ kTest

const char kTest[] = "test"
static

Definition at line 60 of file ncbi_conn_test.cpp.

Referenced by CConnTest::DispatcherOkay(), and CConnTest::ServiceOkay().

Modified on Mon Jul 22 05:02:35 2024 by modify_doxy.py rev. 669887