diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-30 00:50:14 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-30 00:50:14 +0900 |
| commit | 90515dfa50c676df37f440893de6e344fbfd2cdc (patch) | |
| tree | 257d86e0614b6eb0ea8e9384af3269d60a53dbbc /src/HttpServerCommand.h | |
| parent | 4b94ede268ff2ff793b22a0730dcbda09d280618 (diff) | |
RPC over SSL/TLS transport
To enable RPC over SSL/TLS, specify server certificate and private key
using --rpc-certificate and --rpc-private-key options and enable
--rpc-secure option. After the encryption is enabled, use https and
wss scheme to access RPC server.
Diffstat (limited to 'src/HttpServerCommand.h')
| -rw-r--r-- | src/HttpServerCommand.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/HttpServerCommand.h b/src/HttpServerCommand.h index e54d5bbc..e8bf4cd0 100644 --- a/src/HttpServerCommand.h +++ b/src/HttpServerCommand.h @@ -51,11 +51,14 @@ private: SharedHandle<SocketCore> socket_; SharedHandle<HttpServer> httpServer_; Timer timeoutTimer_; + bool writeCheck_; void checkSocketRecvBuffer(); + void updateWriteCheck(); public: HttpServerCommand(cuid_t cuid, DownloadEngine* e, - const SharedHandle<SocketCore>& socket); + const SharedHandle<SocketCore>& socket, + bool secure); HttpServerCommand(cuid_t cuid, const SharedHandle<HttpServer>& httpServer, @@ -63,10 +66,10 @@ public: const SharedHandle<SocketCore>& socket); virtual ~HttpServerCommand(); - + virtual bool execute(); }; -} // namespace aria2 +} // namespace aria2 #endif // D_HTTP_SERVER_COMMAND_H |
