/////////////////////////////////////////////////////// \see SoundRecorder::onStop ///////////////////////////////////////////////////////
| 84 | /// |
| 85 | //////////////////////////////////////////////////////////// |
| 86 | void onStop() override |
| 87 | { |
| 88 | // Send an "end-of-stream" packet |
| 89 | sf::Packet packet; |
| 90 | packet << clientEndOfStream; |
| 91 | |
| 92 | if (m_socket.send(packet) != sf::Socket::Status::Done) |
| 93 | { |
| 94 | std::cerr << "Failed to send end-of-stream packet" << std::endl; |
| 95 | } |
| 96 | |
| 97 | // Close the socket |
| 98 | m_socket.disconnect(); |
| 99 | } |
| 100 | |
| 101 | //////////////////////////////////////////////////////////// |
| 102 | // Member data |
nothing calls this directly
no test coverage detected