|
|
@ -71,16 +71,6 @@ enum RPCErrorCode |
|
|
|
RPC_WALLET_ALREADY_UNLOCKED = -17, // Wallet is already unlocked
|
|
|
|
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
|
|
|
|
// IOStream device that speaks SSL but can also speak non-SSL
|
|
|
|
//
|
|
|
|
//
|
|
|
|