/* */ #ifndef _D_PEER_INITIATE_CONNECTION_H_ #define _D_PEER_INITIATE_CONNECTION_H_ #include "PeerAbstractCommand.h" #include "RequestGroupAware.h" #include "BtContextAwareCommand.h" namespace aria2 { class PeerInitiateConnectionCommand : public PeerAbstractCommand, public BtContextAwareCommand, public RequestGroupAware { private: bool _mseHandshakeEnabled; protected: virtual bool executeInternal(); virtual bool prepareForNextPeer(time_t wait); virtual void onAbort(); virtual bool exitBeforeExecute(); public: PeerInitiateConnectionCommand(int cuid, RequestGroup* requestGroup, const SharedHandle& peer, DownloadEngine* e, const SharedHandle& btContext, bool mseHandshakeEnabled = true); virtual ~PeerInitiateConnectionCommand(); }; } // namespace aria2 #endif // _D_PEER_INITIATE_CONNECTION_H_