Move AcceptedConnection class to rpcserver.h.

Also, add parens to HTTPReply() to assist readability.
This commit is contained in:
Jeff Garzik
2014-06-27 00:10:53 -04:00
parent 854d013012
commit ed5769f536
3 changed files with 12 additions and 12 deletions

View File

@@ -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