peerplays_migrated/libraries/plugins/peerplays_sidechain/common/net_utl.h

19 lines
359 B
C
Raw Normal View History

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
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