text: /*
   * Copyright (c) 2018-2019, The Aonecoin Developers.
   * Portions Copyright (c) 2012-2017, The CryptoNote Developers, The Bytecoin Developers.
   *
   * This file is part of Aonecoin.
   *
   * This file is subject to the terms and conditions defined in the
   * file 'LICENSE', which is part of this source code package.
   */
  
  #pragma once
  
  #include <list>
  #include "P2pProtocolDefinitions.h"
  
  namespace CryptoNote {
  
  class P2pContext;
  
  class IP2pNodeInternal {
  public:
    virtual const CORE_SYNC_DATA& getGenesisPayload() const = 0;
    virtual std::list<PeerlistEntry> getLocalPeerList() const = 0;
    virtual basic_node_data getNodeData() const = 0;
    virtual PeerIdType getPeerId() const = 0;
  
    virtual void handleNodeData(const basic_node_data& node, P2pContext& ctx) = 0;
    virtual bool handleRemotePeerList(const std::list<PeerlistEntry>& peerlist, time_t local_time) = 0;
    virtual void tryPing(P2pContext& ctx) = 0;
  };
  
  }
  