| 55 | namespace osvr { |
| 56 | namespace server { |
| 57 | static vrpn_ConnectionPtr |
| 58 | getVRPNConnection(connection::ConnectionPtr const &conn) { |
| 59 | vrpn_ConnectionPtr ret; |
| 60 | if (std::string(conn->getConnectionKindID()) == |
| 61 | osvr::connection::getVRPNConnectionKindID()) { |
| 62 | ret = vrpn_ConnectionPtr( |
| 63 | static_cast<vrpn_Connection *>(conn->getUnderlyingObject())); |
| 64 | } |
| 65 | return ret; |
| 66 | } |
| 67 | ServerImpl::ServerImpl(connection::ConnectionPtr const &conn) |
| 68 | : m_conn(conn), m_ctx(make_shared<pluginhost::RegistrationContext>()), |
| 69 | m_systemComponent(nullptr), m_running(false), m_sleepTime(0) { |
no test coverage detected