A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/ncbi__userhost_8cpp_source.html below:

NCBI C++ ToolKit: src/connect/ncbi_userhost.cpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

47  ctx

.GetUsername().empty())) {

48  const int

user_len = 256;

57  ctx

.GetHostname().empty())) {

59  if

( !host.empty() ) {

CDiagContext & GetDiagContext(void)

Get diag context instance.

void SetHostname(const string &hostname)

Set hostname.

void SetDiagUserAndHost(TDiagUserAndHost flags)

Set username and hostname properties for the diag context.

void SetUsername(const string &username)

Set username.

@ fDiag_OverrideExisting

Set current user and host even if they are already set.

@ fDiag_AddUser

Add username to diag context.

@ fDiag_AddHost

Add hostname to diag context.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static string gethostname(ESwitch log=eOff)

Return empty string on error.

const char * CORE_GetUsername(char *buf, size_t bufsize)

Equivalent to CORE_GetUsernameEx(buf, bufsize, eNCBI_UsernameLogin) except that it always returns non...


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4