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

Play nice with other processes. #38

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

FurryFuttock
Copy link

Add a time wait for packets, this reduces CPU usage when idle, but doesn't affect throughput.

The timeout is in seconds as that is fine for my usage, I suppose that there is a case for having it in milliseconds or microseconds.

Copy link
Owner

@liftoff-sr liftoff-sr left a comment

Choose a reason for hiding this comment

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

I'll accept the patch if modified to use microseconds. Then simply add 6 zeros to your current value to obtain seconds of delay. I like that it defaults to zero.

FurryFuttock and others added 4 commits February 20, 2024 12:33
Winsock2 only seems seem to want bind broadcast UDP sockets to INADDR_ANY, so for _WIN32 builds I bind udp_global_broadcast_listener and disable  udp_local_broadcast_listener.
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.

3 participants