exposes is_server through connection objects

This commit is contained in:
Peter Thorson
2012-01-08 20:21:47 -06:00
parent 83eaf70f57
commit aaf5f51c35
2 changed files with 8 additions and 0 deletions

View File

@@ -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() {

View File

@@ -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();