| 327 | } |
| 328 | |
| 329 | std::unique_ptr<Sock> Session::Hello() const |
| 330 | { |
| 331 | auto sock = m_control_host.Connect(); |
| 332 | |
| 333 | if (!sock) { |
| 334 | throw std::runtime_error(strprintf("Cannot connect to %s", m_control_host.ToString())); |
| 335 | } |
| 336 | |
| 337 | SendRequestAndGetReply(*sock, "HELLO VERSION MIN=3.1 MAX=3.1"); |
| 338 | |
| 339 | return sock; |
| 340 | } |
| 341 | |
| 342 | void Session::CheckControlSock() |
| 343 | { |