NCBI C++ ToolKit
Classes | Macros | Functions | Variables
server.cpp File Reference

Framework for a multithreaded network server. More...

#include <ncbi_pch.hpp>
#include <corelib/ncbi_param.hpp>
#include "connection_pool.hpp"
#include <connect/ncbi_buffer.h>
#include <connect/error_codes.hpp>
+ Include dependency graph for server.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

class  CFatalRequest_ForServer
 
class  CServer_Request
 
class  CAcceptRequest
 
class  CServerConnectionRequest
 

Macros

#define NCBI_USE_ERRCODE_X   Connect_ThrServer
 

Functions

 NCBI_PARAM_DECL (bool, server, Catch_Unhandled_Exceptions)
 
 NCBI_PARAM_DEF_EX (bool, server, Catch_Unhandled_Exceptions, true, 0, CSERVER_CATCH_UNHANDLED_EXCEPTIONS)
 
typedef NCBI_PARAM_TYPE (server, Catch_Unhandled_Exceptions) TParamServerCatchExceptions
 
int Server_CheckLineMessage (BUF *buffer, const void *data, size_t size, bool &seen_CR)
 
static bool operator< (const STimeout &to1, const STimeout &to2)
 

Variables

static CSafeStatic< TParamServerCatchExceptions > s_ServerCatchExceptions
 
static const STimeout k_DefaultIdleTimeout = { 600, 0 }
 

Detailed Description

Framework for a multithreaded network server.

Definition in file server.cpp.

Macro Definition Documentation

◆ NCBI_USE_ERRCODE_X

#define NCBI_USE_ERRCODE_X   Connect_ThrServer

Definition at line 40 of file server.cpp.

Function Documentation

◆ NCBI_PARAM_DECL()

NCBI_PARAM_DECL ( bool  ,
server  ,
Catch_Unhandled_Exceptions   
)

◆ NCBI_PARAM_DEF_EX()

NCBI_PARAM_DEF_EX ( bool  ,
server  ,
Catch_Unhandled_Exceptions  ,
true  ,
,
CSERVER_CATCH_UNHANDLED_EXCEPTIONS   
)

◆ NCBI_PARAM_TYPE()

typedef NCBI_PARAM_TYPE ( server  ,
Catch_Unhandled_Exceptions   
)

◆ operator<()

static bool operator< ( const STimeout to1,
const STimeout to2 
)
inlinestatic

Definition at line 650 of file server.cpp.

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

Variable Documentation

◆ k_DefaultIdleTimeout

const STimeout k_DefaultIdleTimeout = { 600, 0 }
static

Definition at line 850 of file server.cpp.

◆ s_ServerCatchExceptions

CSafeStatic<TParamServerCatchExceptions> s_ServerCatchExceptions
static
Modified on Mon Feb 26 04:03:57 2024 by modify_doxy.py rev. 669887