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

#69: build for windows #597

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

#69: build for windows #597

wants to merge 4 commits into from

Conversation

lidaobing
Copy link
Member

No description provided.

@lidaobing lidaobing linked an issue May 25, 2024 that may be closed by this pull request
@lidaobing lidaobing marked this pull request as draft May 25, 2024 21:25
Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @lidaobing - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

Comment on lines +253 to +254
if (size == 0) {
continue;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Handling zero-size UDP packets

The check for size == 0 is added, but it might be useful to log this event for debugging purposes, as receiving a zero-size packet could indicate an issue.

Suggested change
if (size == 0) {
continue;
if (size == 0) {
std::cerr << "Warning: Received a packet with size 0." << std::endl;
continue;

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.

有没有办法编译成windows版的?
1 participant