Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
libp2p: attempt fixing windows build (sprinkle some 'public')
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Jan 25, 2016
1 parent ad7abff commit 1f96322
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions libp2p/NodeTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,11 @@ inline std::ostream& operator<<(std::ostream& _out, NodeTable const& _nodeTable)
return _out;
}

struct InvalidDiscoveryPacket: Exception { using Exception::Exception; };
struct InvalidDiscoveryPacket: Exception { public: using Exception::Exception; };

struct DiscoveryDatagram: public RLPXDatagramFace
{
public:
/// Constructor used for sending.
DiscoveryDatagram(bi::udp::endpoint const& _ep): RLPXDatagramFace(_ep), ts(futureFromEpoch(std::chrono::seconds(60))) {}

Expand Down Expand Up @@ -308,7 +309,7 @@ struct DiscoveryDatagram: public RLPXDatagramFace
* If the pinged node doesn't respond, then it is removed and the new
* node is inserted.
*/
struct PingNode: DiscoveryDatagram
struct PingNode: public DiscoveryDatagram
{
using DiscoveryDatagram::DiscoveryDatagram;
PingNode(NodeIPEndpoint _src, NodeIPEndpoint _dest): DiscoveryDatagram(_dest), source(_src), destination(_dest) {}
Expand Down Expand Up @@ -341,7 +342,7 @@ struct PingNode: DiscoveryDatagram
/**
* Pong packet: Sent in response to ping
*/
struct Pong: DiscoveryDatagram
struct Pong: public DiscoveryDatagram
{
using DiscoveryDatagram::DiscoveryDatagram;
Pong(NodeIPEndpoint const& _dest): DiscoveryDatagram((bi::udp::endpoint)_dest), destination(_dest) {}
Expand Down Expand Up @@ -379,7 +380,7 @@ struct Pong: DiscoveryDatagram
* target: NodeID of node. The responding node will send back nodes closest to the target.
*
*/
struct FindNode: DiscoveryDatagram
struct FindNode: public DiscoveryDatagram
{
using DiscoveryDatagram::DiscoveryDatagram;
FindNode(bi::udp::endpoint _ep, h512 _target): DiscoveryDatagram(_ep), target(_target) {}
Expand Down

0 comments on commit 1f96322

Please sign in to comment.