| 32 | } |
| 33 | |
| 34 | void InterCom::accepted() { |
| 35 | m_socket = m_server->nextPendingConnection(); |
| 36 | if (m_socket->waitForReadyRead()) { |
| 37 | m_data = m_socket->readAll(); |
| 38 | m_socket->disconnectFromServer(); |
| 39 | emit readDone(); |
| 40 | } else { |
| 41 | qDebug() << "err: receiving packet"; |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | QByteArray InterCom::getData() { |
| 46 | return m_data; |
nothing calls this directly
no outgoing calls
no test coverage detected