mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-16 07:33:20 +01:00
Move AcceptedConnection class to rpcserver.h.
Also, add parens to HTTPReply() to assist readability.
This commit is contained in:
@@ -71,16 +71,6 @@ enum RPCErrorCode
|
||||
RPC_WALLET_ALREADY_UNLOCKED = -17, // Wallet is already unlocked
|
||||
};
|
||||
|
||||
class AcceptedConnection
|
||||
{
|
||||
public:
|
||||
virtual ~AcceptedConnection() {}
|
||||
|
||||
virtual std::iostream& stream() = 0;
|
||||
virtual std::string peer_address_to_string() const = 0;
|
||||
virtual void close() = 0;
|
||||
};
|
||||
|
||||
//
|
||||
// IOStream device that speaks SSL but can also speak non-SSL
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user