Rev 1601 | Rev 1627 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1601 | Rev 1606 | ||
|---|---|---|---|
| Line 179... | Line 179... | ||
| 179 | } |
179 | } |
| 180 | 180 | ||
| 181 | client->ConnectSlots(Client::SignalOnNewState::slot_type(&Manager::SlotOnNewState, this, _1, _2, _3).track(Manager::instance_), |
181 | client->ConnectSlots(Client::SignalOnNewState::slot_type(&Manager::SlotOnNewState, this, _1, _2, _3).track(Manager::instance_), |
| 182 | Client::SignalOnNewData::slot_type(&Manager::SlotOnNewData, this, _1, _2, _3).track(Manager::instance_)); |
182 | Client::SignalOnNewData::slot_type(&Manager::SlotOnNewData, this, _1, _2, _3).track(Manager::instance_)); |
| 183 | 183 | ||
| 184 | try |
- | |
| 185 | { |
- | |
| 186 | client->Connect(address, port_or_baud); |
184 | client->Connect(address, port_or_baud); |
| 187 | } |
- | |
| 188 | catch (std::exception& e) |
- | |
| 189 | { |
- | |
| 190 | throw std::runtime_error(e.what()); |
- | |
| 191 | } |
- | |
| 192 | 185 | ||
| 193 | this->clients_[client->GetId()] = client; |
186 | this->clients_[client->GetId()] = client; |
| 194 | 187 | ||
| 195 | return client->GetId(); |
188 | return client->GetId(); |
| 196 | } |
189 | } |