Files
hpcore/src/p2p/self_node.hpp
Chalith Desaman 9999c28a37 Remove self connection on peer discovery (#269)
* Resetting last shard syncing flags when sync is abandoned. (#268)

* Remove self loopback connection when self is added by peer discovery

* Resolved PR comments

Co-authored-by: Savinda Senevirathne <savindadilsara@gmail.com>
2021-03-12 19:01:58 +05:30

14 lines
260 B
C++

#ifndef _HP_P2P_SELF_NODE_
#define _HP_P2P_SELF_NODE_
#include "../pchheader.hpp"
namespace p2p::self
{
extern std::optional<conf::peer_ip_port> ip_port;
int process_next_message();
void send(std::string_view message);
} // namespace p2p
#endif