/* */ #ifndef _D_DEFAULT_PEER_LIST_PROCESSOR_H_ #define _D_DEFAULT_PEER_LIST_PROCESSOR_H_ #include "PeerListProcessor.h" class DefaultPeerListProcessor : public PeerListProcessor { private: int32_t pieceLength; int64_t totalLength; public: DefaultPeerListProcessor(int32_t pieceLength, int64_t totalLength) :pieceLength(pieceLength), totalLength(totalLength) {} virtual ~DefaultPeerListProcessor() {} virtual Peers extractPeer(const MetaEntry* peersEntry); virtual bool canHandle(const MetaEntry* peersEntry) const; }; #endif // _D_DEFAULT_PEER_LIST_PROCESSOR_H_