Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests and Fixes #9

Merged
merged 11 commits into from
Feb 23, 2024
Merged

Tests and Fixes #9

merged 11 commits into from
Feb 23, 2024

Conversation

FlorianReimold
Copy link
Member

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 submodule
  • Added Tests

@FlorianReimold FlorianReimold merged commit dd9f1f6 into master Feb 23, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant