instance id for snapclient

This commit is contained in:
Johannes Pohl 2016-11-22 00:09:54 +01:00
parent a54a7f9a37
commit bb7bea1b6c
5 changed files with 30 additions and 11 deletions

View file

@ -34,7 +34,15 @@
using namespace std;
Controller::Controller() : MessageReceiver(), active_(false), latency_(0), stream_(nullptr), decoder_(nullptr), player_(nullptr), serverSettings_(nullptr), asyncException_(false)
Controller::Controller(size_t instance) : MessageReceiver(),
instance_(instance),
active_(false),
latency_(0),
stream_(nullptr),
decoder_(nullptr),
player_(nullptr),
serverSettings_(nullptr),
asyncException_(false)
{
}
@ -174,7 +182,7 @@ void Controller::worker()
{
clientConnection_->start();
msg::Hello hello(clientConnection_->getMacAddress());
msg::Hello hello(clientConnection_->getMacAddress(), instance_);
clientConnection_->send(&hello);
msg::Time timeReq;