Browse Source

build fix

cl-refactor
subtly 10 years ago
parent
commit
dc1bb1d28b
  1. 9
      libp2p/Host.h
  2. 2
      libp2p/Peer.h

9
libp2p/Host.h

@ -48,7 +48,7 @@ namespace dev
namespace p2p
{
class Host;
class HostNodeTableHandler: public NodeTableEventHandler
@ -63,7 +63,7 @@ private:
Host& m_host;
};
/**
* @brief The Host class
* Capabilities should be registered prior to startNetwork, since m_capabilities is not thread-safe.
@ -77,7 +77,10 @@ private:
class Host: public Worker
{
friend class HostNodeTableHandler;
friend struct PeerHandshake;
friend struct RLPXHandshake;
friend class Session;
friend class HostCapabilityFace;
@ -237,6 +240,8 @@ private:
struct PeerSecrets
{
friend struct PeerHandshake;
friend struct RLPXHandshake;
protected:
Secret encryptK;
Secret macK;

2
libp2p/Peer.h

@ -54,7 +54,9 @@ class Peer: public Node
{
friend class Session; /// Allows Session to update score and rating.
friend class Host; /// For Host: saveNetwork(), restoreNetwork()
friend struct PeerHandshake;
friend struct RLPXHandshake;
public:
bool isOffline() const { return !m_session.lock(); }

Loading…
Cancel
Save