You've already forked flowee-p2p-example
25 lines
410 B
C++
25 lines
410 B
C++
#ifndef MYCLASS_H
|
|
#define MYCLASS_H
|
|
|
|
#include <p2p/P2PNetInterface.h>
|
|
|
|
#include <boost/system/detail/error_code.hpp>
|
|
|
|
class DownloadManager;
|
|
|
|
class MyClass : public P2PNetInterface
|
|
{
|
|
public:
|
|
explicit MyClass(DownloadManager *dlm);
|
|
|
|
void start(const boost::system::error_code &error);
|
|
|
|
void newPeer(const std::shared_ptr<Peer> &peer);
|
|
|
|
private:
|
|
DownloadManager *m_dlm;
|
|
|
|
};
|
|
|
|
#endif // MYCLASS_H
|