| 160 | bool ok(const QStringList& lines) const { return rprt(lines) == 0; } |
| 161 | |
| 162 | void close() |
| 163 | { |
| 164 | m_sock.write("q\n"); |
| 165 | m_sock.flush(); |
| 166 | m_sock.disconnectFromHost(); |
| 167 | } |
| 168 | |
| 169 | // Public so callers can drive custom read loops (e.g. section 11.3). |
| 170 | QString readline() |