We're seeing some warnings, and we ought to address them.
../src/FtlClient.cpp: In member function ‘void FtlClient::RelayPacket(RtpRelayPacket)’:
../src/FtlClient.cpp:108:14: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Werror=unused-result]
108 | write(mediaSocketHandle, packet.rtpPacketPayload->data(), packet.rtpPacketPayload->size());
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/FtlClient.cpp: In member function ‘void FtlClient::sendControlMessage(std::string)’:
../src/FtlClient.cpp:416:10: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Werror=unused-result]
416 | write(controlSocketHandle, message.c_str(), message.size());
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
Added a workaround for the compiler warnings in #60, but we ought to check for bad write return values and respond appropriately. Leaving this issue open to track.
We're seeing some warnings, and we ought to address them.