Example #1
0
NetworkMessage Session::makeMessage(QString address)
{
    NetworkMessage m;
    m.address = address;
    m.clientId = localClient().id().val().get();
    m.sessionId = id().val().get();

    return m;
}
Example #2
0
    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;
    }