aboutsummaryrefslogtreecommitdiff
path: root/src/rpcserver.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-06-27 09:37:01 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-06-27 10:03:19 +0200
commitd77f761be954da397ea32335b4ccda36dc33767d (patch)
treeaa4a6e97cb6590e4e6b11e716aa11f3fc4cc95f1 /src/rpcserver.h
parent19168c3377a052b7c2c5418b9f35d3aa2a63fa64 (diff)
parented5769f536f663a8deb8e8b7a68681cebaa52bdd (diff)
Merge pull request #4288
ed5769f Move AcceptedConnection class to rpcserver.h. (Jeff Garzik) 854d013 RPC code movement: separate out JSON-RPC execution logic from HTTP server logic (Jeff Garzik) c912e22 RPC cleanup: Improve HTTP server replies (Jeff Garzik)
Diffstat (limited to 'src/rpcserver.h')
-rw-r--r--src/rpcserver.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rpcserver.h b/src/rpcserver.h
index 1966a65b50..fcd293663f 100644
--- a/src/rpcserver.h
+++ b/src/rpcserver.h
@@ -21,6 +21,16 @@
class CBlockIndex;
class CNetAddr;
+class AcceptedConnection
+{
+public:
+ virtual ~AcceptedConnection() {}
+
+ virtual std::iostream& stream() = 0;
+ virtual std::string peer_address_to_string() const = 0;
+ virtual void close() = 0;
+};
+
/* Start RPC threads */
void StartRPCThreads();
/* Alternative to StartRPCThreads for the GUI, when no server is