NCBI C++ ToolKit
Functions
nst_protocol_utils.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/request_ctx.hpp>
#include <connect/ncbi_socket.hpp>
#include <connect/services/netservice_api_expt.hpp>
#include "nst_protocol_utils.hpp"
#include "nst_exception.hpp"
#include "error_codes.hpp"
+ Include dependency graph for nst_protocol_utils.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

void SetSessionAndIPAndPHID (const CJsonNode &message, const CSocket &peer)
 
SCommonRequestArguments ExtractCommonFields (const CJsonNode &message)
 
TNetStorageFlags ExtractStorageFlags (const CJsonNode &message)
 
SICacheSettings ExtractICacheSettings (const CJsonNode &message)
 
SUserKey ExtractUserKey (const CJsonNode &message)
 
CJsonNode CreateResponseMessage (Int8 serial_number)
 
CJsonNode CreateErrorResponseMessage (Int8 serial_number, Int8 error_code, const string &error_message, const string &scope, Int8 sub_code)
 
void AppendWarning (CJsonNode &message, Int8 code, const string &warning_message, const string &scope, Int8 sub_code)
 
void AppendError (CJsonNode &message, Int8 code, const string &error_message, const string &scope, Int8 sub_code, bool update_status)
 
CJsonNode CreateIssue (Int8 error_code, const string &error_message, const string &scope, Int8 sub_code)
 
bool GetReplyMessageProperties (const exception &ex, string *error_scope, Int8 *error_code, unsigned int *error_sub_code)
 

Function Documentation

◆ AppendError()

void AppendError ( CJsonNode message,
Int8  code,
const string error_message,
const string scope,
Int8  sub_code,
bool  update_status 
)

◆ AppendWarning()

void AppendWarning ( CJsonNode message,
Int8  code,
const string warning_message,
const string scope,
Int8  sub_code 
)

◆ CreateErrorResponseMessage()

CJsonNode CreateErrorResponseMessage ( Int8  serial_number,
Int8  error_code,
const string error_message,
const string scope,
Int8  sub_code 
)

◆ CreateIssue()

CJsonNode CreateIssue ( Int8  error_code,
const string error_message,
const string scope,
Int8  sub_code 
)

◆ CreateResponseMessage()

CJsonNode CreateResponseMessage ( Int8  serial_number)

◆ ExtractCommonFields()

SCommonRequestArguments ExtractCommonFields ( const CJsonNode message)

◆ ExtractICacheSettings()

SICacheSettings ExtractICacheSettings ( const CJsonNode message)

◆ ExtractStorageFlags()

TNetStorageFlags ExtractStorageFlags ( const CJsonNode message)

◆ ExtractUserKey()

SUserKey ExtractUserKey ( const CJsonNode message)

◆ GetReplyMessageProperties()

bool GetReplyMessageProperties ( const exception &  ex,
string error_scope,
Int8 error_code,
unsigned int error_sub_code 
)

◆ SetSessionAndIPAndPHID()

void SetSessionAndIPAndPHID ( const CJsonNode message,
const CSocket peer 
)
Modified on Sat Jul 20 11:08:32 2024 by modify_doxy.py rev. 669887