NCBI C++ ToolKit
|
#include <util/simple_buffer.hpp>
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
class | TNCBufferType |
class | CNCAlerts |
Macros | |
#define | ATTR_PACKED NCBI_PACKED |
#define | ATTR_ALIGNED_8 |
Typedefs | |
typedef map< string, string > | TStringMap |
typedef map< Uint8, string > | TNCPeerList |
typedef vector< Uint8 > | TServersList |
Functions | |
void | InitClientMessages (void) |
Initializes maps between status codes and error texts sent to client to explain these codes. More... | |
EHTTPStatus | GetStatusByMessage (const string &msg, EHTTPStatus def) |
const string & | GetMessageByStatus (EHTTPStatus sts) |
Variables | |
static const char *const | kNCPeerClientName = "nc_peer" |
#define ATTR_ALIGNED_8 |
Definition at line 48 of file nc_utils.hpp.
#define ATTR_PACKED NCBI_PACKED |
Definition at line 39 of file nc_utils.hpp.
typedef map<Uint8, string> TNCPeerList |
Definition at line 60 of file nc_utils.hpp.
typedef vector<Uint8> TServersList |
Definition at line 61 of file nc_utils.hpp.
typedef map<string, string> TStringMap |
Definition at line 59 of file nc_utils.hpp.
enum EHTTPStatus |
Statuses of commands to be set in diagnostics' request context Additional statuses can be taken from http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html.
Definition at line 98 of file nc_utils.hpp.
enum ENCAccessType |
Type of access to NetCache blob.
Definition at line 85 of file nc_utils.hpp.
const string& GetMessageByStatus | ( | EHTTPStatus | sts | ) |
Definition at line 97 of file nc_utils.cpp.
References s_MsgForStatus, and s_UnkStatus.
Referenced by CNCPeerControl::GetReadyForShutdown(), CNCMessageHandler::x_CleanCmdResources(), CNCMessageHandler::x_ExecuteOnLatestSrvId(), CNCActiveHandler::x_ProcessProtocolError(), CNCMessageHandler::x_ReportError(), and CNCMessageHandler::x_StartCommand().
EHTTPStatus GetStatusByMessage | ( | const string & | msg, |
EHTTPStatus | def | ||
) |
Definition at line 84 of file nc_utils.cpp.
References i, msg(), s_StatusForMsg, and NStr::StartsWith().
Referenced by CNCMessageHandler::x_ProxyToNextPeer(), and CNCMessageHandler::x_WaitForPeerAnswer().
void InitClientMessages | ( | void | ) |
Initializes maps between status codes and error texts sent to client to explain these codes.
Definition at line 74 of file nc_utils.cpp.
References i, SStatusMsg::msg, s_MsgForStatus, s_StatusForMsg, s_StatusMessages, and SStatusMsg::status.
Referenced by s_Initialize().
Definition at line 56 of file nc_utils.hpp.
Referenced by CNCActiveHandler::Initialize(), and CNCMessageHandler::x_StartCommand().