2021-10-21 16:54:25 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
namespace peerplays {
|
|
|
|
|
namespace net {
|
|
|
|
|
|
2021-10-22 10:34:56 +00:00
|
|
|
// resolve IP address by host name
|
|
|
|
|
// ex: api.hive.blog -> 52.79.10.214
|
2021-10-21 16:54:25 +00:00
|
|
|
std::string resolveHostAddr(const std::string & hostName);
|
2021-10-22 10:34:56 +00:00
|
|
|
|
|
|
|
|
// remove schema part from URL
|
|
|
|
|
// ex: http://api.hive.blog -> api.hive.blog
|
2021-10-21 21:20:37 +00:00
|
|
|
std::string stripProtoName(const std::string & url);
|
2021-10-21 18:34:42 +00:00
|
|
|
|
2021-10-21 16:54:25 +00:00
|
|
|
|
|
|
|
|
} // net
|
|
|
|
|
} // peerplays
|