NetworkMessage Session::makeMessage(QString address) { NetworkMessage m; m.address = address; m.clientId = localClient().id().val().get(); m.sessionId = id().val().get(); return m; }
NetworkMessage makeMessage(QString address, Args&&... args) { NetworkMessage m; m.address = address; m.clientId = localClient().id().val().get(); m.sessionId = id().val().get(); impl_makeMessage(QDataStream{&m.data, QIODevice::WriteOnly}, std::forward<Args&&>(args)...); return m; }