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

feat: udp connection #8

Merged
merged 13 commits into from
Apr 2, 2024
Merged

feat: udp connection #8

merged 13 commits into from
Apr 2, 2024

Conversation

lchenut
Copy link
Collaborator

@lchenut lchenut commented Mar 8, 2024

Wrap the DatagramTransport from chronos.
It's used to simply store the message and the remote address for the underlying protocols

@diegomrsantos
Copy link

it'd be great if you could add docs to the procs.

@diegomrsantos
Copy link

Could we use the support for exceptions in async procs?

return
trace "UDP write", msg
try:
await self.udp.sendTo(raddr, msg)

Choose a reason for hiding this comment

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

@arnetheduck In this case where we don't need to use the actual value that will be returned by the Future, should we do like it's done here or remove the await/async and return the Future from sendTo?

@lchenut lchenut merged commit 928fc59 into master Apr 2, 2024
8 checks passed
@lchenut lchenut deleted the udp-protocol branch April 2, 2024 12:04
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.

None yet

2 participants