/* */ #ifndef D_DHT_PEER_LOOKUP_TASK_CALLBACK_H #define D_DHT_PEER_LOOKUP_TASK_CALLBACK_H #include "DHTMessageCallback.h" namespace aria2 { class DHTPeerLookupTask; class DHTPeerLookupTaskCallback:public DHTMessageCallback { private: DHTPeerLookupTask* task_; public: DHTPeerLookupTaskCallback(DHTPeerLookupTask* task); virtual void visit(const DHTAnnouncePeerReplyMessage* message); virtual void visit(const DHTFindNodeReplyMessage* message); virtual void visit(const DHTGetPeersReplyMessage* message); virtual void visit(const DHTPingReplyMessage* message); virtual void onTimeout(const SharedHandle& remoteNode); }; } // namespace aria2 #endif // D_DHT_PEER_LOOKUP_TASK_CALLBACK_H