Skip to content

Conversation

@tobias-auterion
Copy link
Contributor

In order to get more information about incoming UDP packets, I needed to create a custom UDP Server and inherit from this orignial one.
Since this custom UDP Server needs access to the internal state of the parent one I change here the private fields to protected.

Additionally, I noticed that the port number is stored in network byte order, which means it needs to be swapped before printing.

@tobias-auterion tobias-auterion self-assigned this Oct 29, 2025
@tobias-auterion tobias-auterion merged commit a3c4d29 into main Oct 29, 2025
0 of 3 checks passed
@tobias-auterion tobias-auterion deleted the udp-server-inheritance branch October 29, 2025 16:42
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.

2 participants