NCBI C++ ToolKit
Classes | Functions
util.cpp File Reference
#include <ncbi_pch.hpp>
#include <connect/services/util.hpp>
#include <connect/services/netservice_api_expt.hpp>
#include <connect/ncbi_socket.hpp>
#include <corelib/ncbifile.hpp>
#include <corelib/ncbi_config.hpp>
+ Include dependency graph for util.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.


struct  SCmdLineArgListImpl


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)

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 Sun Apr 14 05:28:55 2024 by rev. 669887