/* */ #ifndef _D_HTTP_INITIATE_CONNECTION_COMMAND_H_ #define _D_HTTP_INITIATE_CONNECTION_COMMAND_H_ #include "AbstractCommand.h" class HttpInitiateConnectionCommand : public AbstractCommand { private: #ifdef ENABLE_ASYNC_DNS NameResolverHandle nameResolver; #endif // ENABLE_ASYNC_DNS 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. */ bool executeInternal(Segment& segment); public: HttpInitiateConnectionCommand(int cuid, Request* req, DownloadEngine* e); ~HttpInitiateConnectionCommand(); }; #endif // _D_HTTP_INITIATE_CONNECTION_COMMAND_H_