From f4e2c7f0603fdb0609bf163ee5ea683a44b98d69 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 20 Mar 2012 21:42:09 +0900 Subject: Added JSON-RPC over WebSocket. Wslay library must be placed under deps/wslay. --- src/HttpServerResponseCommand.h | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'src/HttpServerResponseCommand.h') diff --git a/src/HttpServerResponseCommand.h b/src/HttpServerResponseCommand.h index 12bdf434..670dc286 100644 --- a/src/HttpServerResponseCommand.h +++ b/src/HttpServerResponseCommand.h @@ -35,22 +35,14 @@ #ifndef D_HTTP_SERVER_RESPONSE_COMMAND_H #define D_HTTP_SERVER_RESPONSE_COMMAND_H -#include "Command.h" -#include "SharedHandle.h" -#include "TimerA2.h" +#include "AbstractHttpServerResponseCommand.h" namespace aria2 { -class DownloadEngine; -class SocketCore; -class HttpServer; - -class HttpServerResponseCommand : public Command { -private: - DownloadEngine* e_; - SharedHandle socket_; - SharedHandle httpServer_; - Timer timeoutTimer_; +class HttpServerResponseCommand : public AbstractHttpServerResponseCommand { +protected: + virtual void afterSend(const SharedHandle& httpServer, + DownloadEngine* e); public: HttpServerResponseCommand(cuid_t cuid, const SharedHandle& httpServer, @@ -58,8 +50,6 @@ public: const SharedHandle& socket); virtual ~HttpServerResponseCommand(); - - virtual bool execute(); }; } // namespace aria2 -- cgit