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

OpenIOContextWithDictionary #116

Merged
merged 8 commits into from
Dec 12, 2024
Merged

OpenIOContextWithDictionary #116

merged 8 commits into from
Dec 12, 2024

Conversation

oldma3095
Copy link
Contributor

need open output with dictionary.
example:

d := astiav.NewDictionary()
_ = d.Set("pkt_size", "1316", 0)
ctx, err := astiav.OpenIOContextWithDictionary("udp://239.0.0.1:12345", astiav.NewIOContextFlags(astiav.IOContextFlagWrite), d)

@asticode
Copy link
Owner

I'd rather keep only one function opening an io context therefore could you modify OpenIOContext directly by updating the link in its comment, adding the dictionnary as an argument and the logic inside of it? Also, can you modify examples that use this function?

io_context.go Outdated Show resolved Hide resolved
io_context_test.go Outdated Show resolved Hide resolved
@asticode asticode merged commit f8f8f0e into asticode:master Dec 12, 2024
3 checks passed
@asticode
Copy link
Owner

Thanks for the PR! ❤️

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