Skip to content

Refactor netsnmp playback function to use an io.Reader #459

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

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

dswarbrick
Copy link
Contributor

Avoid unnecessary casting of byte slice to string by using a base64 stream decoder atop an io.Reader (the os.File). Make error handling a bit more granular.

Avoid unnecessary casting of byte slice to string by using a base64
stream decoder atop an io.Reader (the os.File). Make error handling a
bit more granular.

Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
Copy link
Contributor

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

Nice

@SuperQ SuperQ merged commit ffa7b3d into gosnmp:master Dec 12, 2023
@dswarbrick dswarbrick deleted the netsnmp-playback-enhancements branch December 12, 2023 17:07
SuperQ added a commit that referenced this pull request Aug 7, 2024
* [CHANGE] Refactor netsnmp playback function to use an io.Reader #459
* [FEATURE] Support multiple security parameters for receiving SNMP V3 traps #457
* [ENHANCEMENT] netsnmp tests: tame overzealous file / dir permissions #458

Also update missing v1.37.0 changelog entries.

Signed-off-by: SuperQ <superq@gmail.com>
@SuperQ SuperQ mentioned this pull request Aug 7, 2024
SuperQ added a commit that referenced this pull request Aug 7, 2024
* [CHANGE] Refactor netsnmp playback function to use an io.Reader #459
* [FEATURE] Support multiple security parameters for receiving SNMP V3 traps #457
* [ENHANCEMENT] netsnmp tests: tame overzealous file / dir permissions #458

Also update missing v1.37.0 changelog entries.

Signed-off-by: SuperQ <superq@gmail.com>
vma pushed a commit to sipsolutions/gosnmp that referenced this pull request May 6, 2025
Avoid unnecessary casting of byte slice to string by using a base64
stream decoder atop an io.Reader (the os.File). Make error handling a
bit more granular.

Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
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