53 ConnNetInfo_Destroy(net_info);
58 SERV_Open(service.c_str(), serv_type, 0, net_info.get()),
73 [](
const pair<string, int> &
a,
const pair<string, int> &
b) ->
bool
75 return a.second > b.second;
86 vector<pair<string,int>>
result;
89 for (
auto const & el :
result) {
static bool s_Resolve(const string &service, vector< pair< string, int >> &result, TSERV_Type serv_type=fSERV_Any)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
SSERV_InfoCPtr SERV_GetNextInfo(SERV_ITER iter)
Same as "SERV_GetNextInfoEx(., 0)" – i.e.
SERV_ITER SERV_Open(const char *service, TSERV_Type types, unsigned int preferred_host, const SConnNetInfo *net_info)
Same as "SERV_OpenEx(., ., ., ., 0, 0)" – i.e.
unsigned int TSERV_Type
Bitwise OR of ESERV_Type[Special].
size_t SOCK_HostPortToString(unsigned int host, unsigned short port, char *buf, size_t bufsize)
Print numeric string "host:port" into a buffer provided, not to exceed 'bufsize' bytes (including the...
SConnNetInfo * ConnNetInfo_Create(const char *service)
constexpr auto sort(_Init &&init)
static const char delimiter[]