mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
exposes is_server through connection objects
This commit is contained in:
@@ -114,6 +114,10 @@ public:
|
||||
int32_t rand() {
|
||||
return m_endpoint.rand();
|
||||
}
|
||||
|
||||
bool is_server() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
// should this exist?
|
||||
boost::asio::io_service& get_io_service() {
|
||||
|
||||
@@ -112,6 +112,10 @@ public:
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool is_server() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
// should this exist?
|
||||
boost::asio::io_service& get_io_service() {
|
||||
return m_endpoint.get_io_service();
|
||||
|
||||
Reference in New Issue
Block a user