Udpcap v2.0.0
Core Changes:
- Fixed issue that datagrams would be lost if they received faster than the user polled
receiveDatagram()
- Changed API of
receiveDatagram()
function- The
std::vector<char>
variant does not exist anymore. Use thechar*
method instead and allocate the vector yourself, if you need to. - The function now return error reasons the reason as
udpcap::Error
- The
- Added
isClosed()
function - Removed
hasPendingDatagram()
function - Fixed a memory leak
- Fixed crashes when closing the socket with close()
- Fixed many compiler and clang-tidy warnings
Tests:
- Added GTest as possible dependency. It can be fetched via cmake at configure-time.
- Added Tests
CMake:
- Added support for
UDPCAP_LIBRARY_TYPE
to control the library type without settingBUILD_SHARED_LIBS
- Added new options to build / fetch gtest
Dependencies:
- Updated default Pcap++ dependency to 22.11
- Fixed detection of x64 vs x86 dependencies
Full Changelog: v1.0.2...v2.0.0