MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / getVRPNConnection

Function getVRPNConnection

src/osvr/Server/ServerImpl.cpp:57–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55namespace osvr {
56namespace 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) {

Callers 2

ServerImplMethod · 0.70

Calls 3

getVRPNConnectionKindIDFunction · 0.85
getConnectionKindIDMethod · 0.45
getUnderlyingObjectMethod · 0.45

Tested by

no test coverage detected