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

Method m_initConnection

src/osvr/Connection/VrpnBasedConnection.cpp:72–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 }
71
72 void VrpnBasedConnection::m_initConnection(const char iface[], int port) {
73 if (!m_network.isUp()) {
74 OSVR_DEV_VERBOSE("Network error: " << m_network.getError());
75 throw std::runtime_error(m_network.getError());
76 }
77 if (0 == port) {
78 port = vrpn_DEFAULT_LISTEN_PORT_NO;
79 }
80 m_vrpnConnection = vrpn_ConnectionPtr::create_server_connection(
81 port, nullptr, nullptr, iface);
82 }
83
84 MessageTypePtr
85 VrpnBasedConnection::m_registerMessageType(std::string const &messageId) {

Callers

nothing calls this directly

Calls 1

isUpMethod · 0.80

Tested by

no test coverage detected