/* */ #ifndef D_PEER_RECEIVE_HANDSHAKE_COMMAND_H #define D_PEER_RECEIVE_HANDSHAKE_COMMAND_H #include "PeerAbstractCommand.h" namespace aria2 { class PeerConnection; class SocketCore; class Peer; class PeerReceiveHandshakeCommand:public PeerAbstractCommand { private: std::unique_ptr peerConnection_; protected: virtual bool executeInternal() CXX11_OVERRIDE; virtual bool exitBeforeExecute() CXX11_OVERRIDE; public: PeerReceiveHandshakeCommand (cuid_t cuid, const std::shared_ptr& peer, DownloadEngine* e, const std::shared_ptr& s, std::unique_ptr peerConnection = nullptr); virtual ~PeerReceiveHandshakeCommand(); }; } // namespace aria2 #endif // D_PEER_RECEIVE_HANDSHAKE_COMMAND_H