/* */ #ifndef _D_HTTP_INITIATE_CONNECTION_COMMAND_H_ #define _D_HTTP_INITIATE_CONNECTION_COMMAND_H_ #include "AbstractCommand.h" class HttpInitiateConnectionCommand : public AbstractCommand { private: NameResolverHandle nameResolver; bool useProxy(); bool useProxyGet(); bool useProxyTunnel(); protected: /** * Connect to the server. * This method just send connection request to the server. * Using nonblocking mode of socket, this funtion returns immediately * after send connection packet to the server. * Whether or not the connection is established successfully is * evaluated by RequestCommand. */ virtual bool executeInternal(); #ifdef ENABLE_ASYNC_DNS virtual bool nameResolveFinished() const; #endif // ENABLE_ASYNC_DNS public: HttpInitiateConnectionCommand(int cuid, const RequestHandle& req, RequestGroup* requestGroup, DownloadEngine* e); virtual ~HttpInitiateConnectionCommand(); }; #endif // _D_HTTP_INITIATE_CONNECTION_COMMAND_H_