/* */ #ifndef D_DHT_NODE_LOOKUP_TASK_CALLBACK_H #define D_DHT_NODE_LOOKUP_TASK_CALLBACK_H #include "DHTMessageCallback.h" namespace aria2 { class DHTNodeLookupTask; class DHTNodeLookupTaskCallback:public DHTMessageCallback { private: DHTNodeLookupTask* task_; public: DHTNodeLookupTaskCallback(DHTNodeLookupTask* 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_NODE_LOOKUP_TASK_CALLBACK_H