| 283 | } |
| 284 | |
| 285 | std::unique_ptr<Sock> Session::Hello() const |
| 286 | { |
| 287 | auto sock = CreateSock(m_control_host); |
| 288 | |
| 289 | if (!sock) { |
| 290 | throw std::runtime_error("Cannot create socket"); |
| 291 | } |
| 292 | |
| 293 | if (!ConnectSocketDirectly(m_control_host, *sock, nConnectTimeout, true)) { |
| 294 | throw std::runtime_error(strprintf("Cannot connect to %s", m_control_host.ToString())); |
| 295 | } |
| 296 | |
| 297 | SendRequestAndGetReply(*sock, "HELLO VERSION MIN=3.1 MAX=3.1"); |
| 298 | |
| 299 | return sock; |
| 300 | } |
| 301 | |
| 302 | void Session::CheckControlSock() |
| 303 | { |
nothing calls this directly
no test coverage detected