Logo white

Peter M. Groen / FlashMQ

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • FlashMQ
  • session.cpp
  • Store clients as sessions ...
    3cb1fae8
    In preparation for clean session and qos.
    Wiebe Cazemier authored
    2021-03-20 19:02:25 +0100  
    Browse Code ยป
session.cpp 293 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#include "session.h"

Session::Session()
{

}

Session::Session(std::shared_ptr<Client> &client)
{
    this->client = client;
}

bool Session::clientDisconnected() const
{
    return client.expired();
}

std::shared_ptr<Client> Session::makeSharedClient() const
{
     return client.lock();
}