void MumbleClient::OnActivated() { // send our own version MumbleProto::Version ourVersion; ourVersion.set_version(0x00010204); ourVersion.set_os("Windows"); ourVersion.set_os_version("Cfx/Embedded"); ourVersion.set_release("CitizenFX Client"); this->Send(MumbleMessageType::Version, ourVersion); }
void mumlib::Transport::sendVersion() { MumbleProto::Version version; version.set_version(CLIENT_VERSION); version.set_os(CLIENT_OS); version.set_release(CLIENT_RELEASE); version.set_os_version(CLIENT_OS_VERSION); logger.info("Sending version information."); sendControlMessagePrivate(MessageType::VERSION, version); }
void MainWindow::msgVersion(const MumbleProto::Version &msg) { if (msg.has_version()) g.sh->uiVersion = msg.version(); if (msg.has_release()) g.sh->qsRelease = u8(msg.release()); if (msg.has_os()) { g.sh->qsOS = u8(msg.os()); if (msg.has_os_version()) g.sh->qsOSVersion = u8(msg.os_version()); } }
void MumbleClient::sendVersion() { qDebug() << "sending version"; MumbleProto::Version v; v.set_version(PROTOCOL_VERSION); v.set_release("QRadioLink 0.2"); v.set_os("GNU/Linux"); v.set_os_version("3.2"); int size = v.ByteSize(); quint8 data[size]; v.SerializeToArray(data,size); quint16 type = 0; this->sendMessage(data,type,size); authenticate(); }