NCBI C++ ToolKit
Classes | Macros | Functions
util.hpp File Reference
#include "netcomponent.hpp"
+ Include dependency graph for util.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.


class  CCmdLineArgList


#define TEMP_STRING_CTOR(str)   CTempString(str, sizeof(str) - 1)


string g_NetService_gethostnamebyaddr (unsigned ip)
unsigned g_NetService_gethostbyname (const string &hostname)
string g_NetService_gethostname (const string &ip_or_hostname)
string g_NetService_gethostip (const string &ip_or_hostname)
string g_NetService_TryResolveHost (const string &ip_or_hostname)

Macro Definition Documentation


#define TEMP_STRING_CTOR (   str)    CTempString(str, sizeof(str) - 1)

Definition at line 79 of file util.hpp.

Function Documentation

◆ g_NetService_gethostbyname()

unsigned g_NetService_gethostbyname ( const string hostname)

Definition at line 160 of file util.cpp.

References eOn, CSocketAPI::gethostbyname(), ip, and NCBI_THROW_FMT.

Referenced by g_NetService_gethostip(), and g_NetService_gethostname().

◆ g_NetService_gethostip()

string g_NetService_gethostip ( const string ip_or_hostname)

Definition at line 181 of file util.cpp.

References g_NetService_gethostbyname(), and CSocketAPI::ntoa().

◆ g_NetService_gethostname()

string g_NetService_gethostname ( const string ip_or_hostname)

◆ g_NetService_gethostnamebyaddr()

string g_NetService_gethostnamebyaddr ( unsigned  ip)

Definition at line 154 of file util.cpp.

References eOn, CSocketAPI::gethostbyaddr(), ip, and CSocketAPI::ntoa().

◆ g_NetService_TryResolveHost()

string g_NetService_TryResolveHost ( const string ip_or_hostname)
Modified on Wed May 29 18:43:26 2024 by rev. 669887