mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
* Add NIOAsyncChannel based connect and bind methods to DatagramBootstrap # Motivation In my previous PR, I added new `connect` methods to `ClientBootstrap` that vend `NIOAsyncChannel` or support an async protocol negotiation. This PR focuses on adding new `connect` and `bind` methods to `DatagramBootstraps` which offer the same functionality. # Modification This PR adds new `connect` and `bind` methods that either vend a `NIOAsyncChannel` or an asynchronous protocol negotiation result. # Result We can now bootstrap UDP channels with `NIOAsyncChannel`s * Code review * Add self * Remove so_reuseaddr * Add sleep between client and server bootstrap