Skip to content

Udpcap v2.0.0

Compare
Choose a tag to compare
@FlorianReimold FlorianReimold released this 22 Mar 12:21
· 2 commits to master since this release
6b7622c

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 the char* method instead and allocate the vector yourself, if you need to.
    • The function now return error reasons the reason as udpcap::Error
  • 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 setting BUILD_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