aboutsummaryrefslogtreecommitdiff
path: root/src/rpcserver.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@bitpay.com>2014-06-27 00:10:53 -0400
committerJeff Garzik <jgarzik@bitpay.com>2014-06-27 00:10:53 -0400
commited5769f536f663a8deb8e8b7a68681cebaa52bdd (patch)
tree1fb0ca0333560b8bba9bdbab7d755d412ecc7c2a /src/rpcserver.h
parent854d013012c2d457d5296227d212b053cbea5239 (diff)
downloadbitcoin-ed5769f536f663a8deb8e8b7a68681cebaa52bdd.tar.xz
Move AcceptedConnection class to rpcserver.h.
Also, add parens to HTTPReply() to assist readability.
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