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