summaryrefslogtreecommitdiff
path: root/src/HttpServerResponseCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-03-20 21:42:09 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-03-20 21:42:09 +0900
commitf4e2c7f0603fdb0609bf163ee5ea683a44b98d69 (patch)
tree18227134780ec9417ecc7b24969f35725a377e04 /src/HttpServerResponseCommand.h
parentf16511012e28d1303e300e695b310d01b6200c2c (diff)
Added JSON-RPC over WebSocket.
Wslay library must be placed under deps/wslay.
Diffstat (limited to 'src/HttpServerResponseCommand.h')
-rw-r--r--src/HttpServerResponseCommand.h20
1 files changed, 5 insertions, 15 deletions
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<SocketCore> socket_;
- SharedHandle<HttpServer> httpServer_;
- Timer timeoutTimer_;
+class HttpServerResponseCommand : public AbstractHttpServerResponseCommand {
+protected:
+ virtual void afterSend(const SharedHandle<HttpServer>& httpServer,
+ DownloadEngine* e);
public:
HttpServerResponseCommand(cuid_t cuid,
const SharedHandle<HttpServer>& httpServer,
@@ -58,8 +50,6 @@ public:
const SharedHandle<SocketCore>& socket);
virtual ~HttpServerResponseCommand();
-
- virtual bool execute();
};
} // namespace aria2