Skip to content

Conversation

@ThadHouse
Copy link
Member

Without this, the only way to read items is to use the event. And in my use case, adding that would require adding my own thread just for handling that event.

@ThadHouse ThadHouse requested a review from a team as a code owner May 22, 2025 01:01
@ThadHouse ThadHouse marked this pull request as draft May 22, 2025 01:01
@github-actions github-actions bot added component: wpinet Networking library 2027 2027 target labels May 22, 2025
@ThadHouse
Copy link
Member Author

Also fixed a bug where the byte order was wrong.

@ThadHouse ThadHouse marked this pull request as ready for review May 22, 2025 19:54
Copy link
Member

@PeterJohnson PeterJohnson left a comment

Choose a reason for hiding this comment

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

I don't love the names, but I don't have a better suggestion.

* not send the data to the event queue.
*/
bool SetCopyCallback(std::function<bool(const ServiceData&)> callback);
/**
Copy link
Member

Choose a reason for hiding this comment

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

Should have a newline before each of these comment blocks.

Copy link
Member Author

Choose a reason for hiding this comment

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

For some reason this is what the formatter did. Not sure why.

Copy link
Member

@calcmogul calcmogul May 22, 2025

Choose a reason for hiding this comment

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

The #ifdef __cplusplus around around the whole file is confusing wpiformat's #include parser. It expects #ifdefs to stop before the non-include part of the code starts, since it has to rely on that to sort groups of #ifdef'd #includes properly.

@PeterJohnson PeterJohnson merged commit 22d12d2 into wpilibsuite:2027 May 23, 2025
36 checks passed
@rzblue rzblue mentioned this pull request Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2027 2027 target component: wpinet Networking library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants