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 namespace p2p
{ {
class Host; class Host;
class HostNodeTableHandler: public NodeTableEventHandler class HostNodeTableHandler: public NodeTableEventHandler
@ -63,7 +63,7 @@ private:
Host& m_host; Host& m_host;
}; };
/** /**
* @brief The Host class * @brief The Host class
* Capabilities should be registered prior to startNetwork, since m_capabilities is not thread-safe. * Capabilities should be registered prior to startNetwork, since m_capabilities is not thread-safe.
@ -77,7 +77,10 @@ private:
class Host: public Worker class Host: public Worker
{ {
friend class HostNodeTableHandler; friend class HostNodeTableHandler;
friend struct PeerHandshake; friend struct PeerHandshake;
friend struct RLPXHandshake;
friend class Session; friend class Session;
friend class HostCapabilityFace; friend class HostCapabilityFace;
@ -237,6 +240,8 @@ private:
struct PeerSecrets struct PeerSecrets
{ {
friend struct PeerHandshake; friend struct PeerHandshake;
friend struct RLPXHandshake;
protected: protected:
Secret encryptK; Secret encryptK;
Secret macK; 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 Session; /// Allows Session to update score and rating.
friend class Host; /// For Host: saveNetwork(), restoreNetwork() friend class Host; /// For Host: saveNetwork(), restoreNetwork()
friend struct PeerHandshake; friend struct PeerHandshake;
friend struct RLPXHandshake;
public: public:
bool isOffline() const { return !m_session.lock(); } bool isOffline() const { return !m_session.lock(); }

Loading…
Cancel
Save